GHSA-9j2c-x8qm-qmjq

Suggest an improvement
Source
https://github.com/advisories/GHSA-9j2c-x8qm-qmjq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-9j2c-x8qm-qmjq/GHSA-9j2c-x8qm-qmjq.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-9j2c-x8qm-qmjq
Aliases
Published
2020-04-20T21:31:23Z
Modified
2026-05-07T05:01:24Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
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:

Database specific
{
    "cwe_ids": [
        "CWE-89"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-04-20T21:31:05Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

PyPI / tortoise-orm

Package

Name
tortoise-orm
View open source insights on deps.dev
Purl
pkg:pypi/tortoise-orm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.15.23

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.1.3
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.2
0.7.3
0.7.4
0.7.5
0.7.6
0.7.7
0.7.8
0.7.9
0.7.10
0.8.0
0.8.1
0.8.2
0.9.0
0.9.1
0.9.2
0.9.4
0.10.0
0.10.1
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.10.10
0.10.11
0.11.0
0.11.1
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.11.10
0.11.11
0.11.12
0.11.13
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.2
0.13.3
0.13.4
0.13.5
0.13.6
0.13.7
0.13.8
0.13.9
0.13.10
0.13.11
0.13.12
0.14.0
0.14.1
0.14.2
0.15.0
0.15.1
0.15.2
0.15.3
0.15.4
0.15.5
0.15.6
0.15.7
0.15.8
0.15.9
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.20
0.15.21
0.15.22

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"

PyPI / tortoise-orm

Package

Name
tortoise-orm
View open source insights on deps.dev
Purl
pkg:pypi/tortoise-orm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.16.0
Fixed
0.16.6

Affected versions

0.*
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"