CVE-2020-11010 SQL injection in Tortoise ORM
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.
| Package | Affected | Fixed in |
|---|---|---|
tortoise-orm PyPI | All versions | 0.15.23, 0.16.6 |
tortoise-orm PyPI | All versions | 0.15.23 |
tortoise-orm PyPI | All versions | 0.15.23 |
tortoise-orm PyPI | From 0.16.0 | 0.16.6 |
tortoise-orm PyPI | From 0.16.0 | 0.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.