CVE-2020-11010 SQL injection in Tortoise ORM

Medium 6.3 Published Updated

SQL injection in Tortoise ORM allows attackers to manipulate database queries, potentially reading or modifying data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-11010?

CVE-2020-11010 is a medium-severity SQL injection vulnerability in tortoise-orm, published on 20 Apr 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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).

Weakness: CWE-89

Which versions are affected by CVE-2020-11010?

5 open source packages ship an affected version, including tortoise-orm. It affects 1 product.

PackageAffectedFixed in
tortoise-orm PyPIAll versions0.15.23, 0.16.6
tortoise-orm PyPIAll versions0.15.23
tortoise-orm PyPIAll versions0.15.23
tortoise-orm PyPIFrom 0.16.00.16.6
tortoise-orm PyPIFrom 0.16.00.16.6

Products include Tortoise Orm Project Tortoise Orm.

How do I fix CVE-2020-11010?

Upgrade tortoise-orm to a fixed version for your release line: 0.15.23 or 0.16.6.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2020-11010 being exploited?

There is no known exploitation of CVE-2020-11010 in the wild and no public exploit code.

Sources

Also known as GHSA-9j2c-x8qm-qmjq, PYSEC-2020-144.

Is CVE-2020-11010 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free