ADVISORIES

GitHub Advisory Database

GHSA-9j2c-x8qm-qmjq

SQL injection in Tortoise ORM

Details

Impact

Various forms of SQL injection has been found, for MySQL and when filtering or doing mass-updates on char/text fields. SQLite & PostgreSQL was only affected when filtering with `contains, starts_with or ends_with` filters (and their case-insensitive counterparts)

Patches

Please upgrade to 0.15.23+ or 0.16.6+

For more information

If you have any questions or comments about this advisory:

Affected packages

EcosystemPackageAffected versions
PyPItortoise-orm
All versions before 0.15.23 (fixed in 0.15.23)
PyPItortoise-orm
From 0.16.0 before 0.16.6 (fixed in 0.16.6)

References