Advisory

GHSA-9j2c-x8qm-qmjq

Also known as: CVE-2020-11010, PYSEC-2020-144

Summary

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:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-04-20 21:31 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

tortoise-orm

PyPI · All systems

Affected

  • introduced 0, fixed 0.15.23 (ecosystem)

Fixed versions

0.15.23

Fix

  • Fixed version 0.15.23
    pip install --upgrade tortoise-orm==0.15.23

tortoise-orm

PyPI · All systems

Affected

  • introduced 0.16.0, fixed 0.16.6 (ecosystem)

Fixed versions

0.16.6

Fix

  • Fixed version 0.16.6
    pip install --upgrade tortoise-orm==0.16.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences