{"id":"GHSA-9j2c-x8qm-qmjq","summary":"SQL injection in Tortoise ORM","details":"### 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)","aliases":["CVE-2020-11010","PYSEC-2020-144"],"modified":"2026-09-10T03:48:43.972863097Z","published":"2020-04-20T21:31:23Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-89"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-04-20T21:31:05Z"},"references":[{"type":"WEB","url":"https://github.com/tortoise/tortoise-orm/security/advisories/GHSA-9j2c-x8qm-qmjq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11010"},{"type":"WEB","url":"https://github.com/tortoise/tortoise-orm/commit/91c364053e0ddf77edc5442914c6f049512678b3"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/tortoise-orm/PYSEC-2020-144.yaml"},{"type":"PACKAGE","url":"https://github.com/tortoise/tortoise-orm"}],"affected":[{"package":{"name":"tortoise-orm","ecosystem":"PyPI","purl":"pkg:pypi/tortoise-orm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.23"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.10.0","0.10.1","0.10.10","0.10.11","0.10.2","0.10.3","0.10.4","0.10.5","0.10.6","0.10.7","0.10.8","0.10.9","0.11.0","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.2","0.11.3","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.13.0","0.13.1","0.13.10","0.13.11","0.13.12","0.13.2","0.13.3","0.13.4","0.13.5","0.13.6","0.13.7","0.13.8","0.13.9","0.14.0","0.14.1","0.14.2","0.15.0","0.15.1","0.15.10","0.15.11","0.15.12","0.15.13","0.15.14","0.15.15","0.15.16","0.15.17","0.15.18","0.15.19","0.15.2","0.15.20","0.15.21","0.15.22","0.15.3","0.15.4","0.15.5","0.15.6","0.15.7","0.15.8","0.15.9","0.2.0","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.6.0","0.6.1","0.6.2","0.7.0","0.7.1","0.7.10","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.7.8","0.7.9","0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.9.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-9j2c-x8qm-qmjq/GHSA-9j2c-x8qm-qmjq.json"}},{"package":{"name":"tortoise-orm","ecosystem":"PyPI","purl":"pkg:pypi/tortoise-orm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.16.0"},{"fixed":"0.16.6"}]}],"versions":["0.16.0","0.16.1","0.16.2","0.16.3","0.16.4","0.16.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-9j2c-x8qm-qmjq/GHSA-9j2c-x8qm-qmjq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V4","score":"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"}]}