{"id":"CVE-2020-11010","aliases":["CVE-2020-11010","GHSA-9j2c-x8qm-qmjq","PYSEC-2020-144"],"related":[],"kind":"vulnerability","state":"published","title":"SQL injection in Tortoise ORM","summary":"In Tortoise ORM before versions 0.15.23 and 0.16.6, various forms of SQL injection have been found for MySQL and when filtering or doing mass-updates on char/text fields. SQLite & PostgreSQL are only affected when filtering with contains, starts_with, or ends_with filters (and their case-insensitive counterparts).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Tortoise ORM before versions 0.15.23 and 0.16.6, various forms of SQL injection have been found for MySQL and when filtering or doing mass-updates on char/text fields. SQLite & PostgreSQL are only affected when filtering with contains, starts_with, or ends_with filters (and their case-insensitive counterparts).","source":"cvelist"},{"lang":"en","text":"### Impact\nVarious forms of SQL injection has been found, for MySQL and when filtering or doing mass-updates on char/text fields.\nSQLite & PostgreSQL was only affected when filtering with ``contains``, ``starts_with`` or ``ends_with`` filters (and their case-insensitive counterparts)\n\n\n### Patches\nPlease upgrade to 0.15.23+ or 0.16.6+\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Github](https://github.com/tortoise/tortoise-orm/issues)\n* Chat to us on [Gitter](https://gitter.im/tortoise/community)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Tortoise ORM versiones anteriores a la versión  0.15.23 y 0.16.6, varias formas de inyección SQL han sido encontradas para MySQL y cuando se filtra o realizan actualizaciones masivas en campos char/text. SQLite y PostgreSQL solo están afectados cuando se filtra con los filtros contains, starts_with, o ends_with (y sus homólogos que no distinguen entre mayúsculas y minúsculas).","source":"nvd"}],"published":"2020-04-20T21:31:23.000Z","modified":"2026-09-10T03:48:43.972Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 0.15.23","status":"affected"},{"version":">= 0.16.0, < 0.16.6","status":"affected"}],"vendor":"tortoise","product":"tortoise-orm","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.15.23"}],"ecosystem":"PyPI","package":"tortoise-orm","purl":"pkg:pypi/tortoise-orm","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.16.0","status":"affected","fixed":"0.16.6"}],"ecosystem":"PyPI","package":"tortoise-orm","purl":"pkg:pypi/tortoise-orm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.15.23"},{"status":"affected","introduced":"0.16.0","fixed":"0.16.6"}],"vendor":"tortoise_orm_project","product":"tortoise_orm","cpe":"cpe:2.3:a:tortoise_orm_project:tortoise_orm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"91c364053e0ddf77edc5442914c6f049512678b3"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.15.23"},{"type":"ecosystem","introduced":"0.16.0","status":"affected","fixed":"0.16.6"}],"ecosystem":"PyPI","package":"tortoise-orm","purl":"pkg:pypi/tortoise-orm","repo":"https://github.com/tortoise/tortoise-orm","source":"pysec"}],"references":[{"url":"https://github.com/tortoise/tortoise-orm/security/advisories/GHSA-9j2c-x8qm-qmjq","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tortoise/tortoise-orm/commit/91c364053e0ddf77edc5442914c6f049512678b3","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11010","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tortoise-orm/PYSEC-2020-144.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tortoise/tortoise-orm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-11010","url":"https://www.cve.org/CVERecord?id=CVE-2020-11010","licence":"CVE Terms of Use","modified":"2024-08-04T11:21:14.257Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9j2c-x8qm-qmjq","url":"https://github.com/advisories/GHSA-9j2c-x8qm-qmjq","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:43.972Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-11010","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11010","licence":"Public domain","modified":"2026-06-17T02:48:51.157Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-144","url":"https://osv.dev/vulnerability/PYSEC-2020-144","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:03.112Z"}],"updatedAt":"2026-11-25T22:57:52.129Z","epss":{"score":0.01056,"percentile":0.65359,"date":"2026-12-01T12:00:22.000Z"}}