CVE-2019-7164
CRITICAL 9.8CVSS 3.1SQLAlchemy vulnerable to SQL Injection via order_by parameter
SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2 allows SQL Injection via the order_by parameter.
- Published
- 20 Feb 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-887w-45rq-vxgfPYSEC-2019-123
- Sources
- NVDJSONOSV GHSA-887w-45rq-vxgfJSONOSV PYSEC-2019-123JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sqlalchemy | sqlalchemycpe:2.3:a:sqlalchemy:sqlalchemy:*:*:*:*:*:*:*:* |
<= 1.2.17 | |
| NVD | sqlalchemy | sqlalchemycpe:2.3:a:sqlalchemy:sqlalchemy:1.3.0:beta1:*:*:*:*:*:* |
= 1.3.0 | |
| NVD | sqlalchemy | sqlalchemycpe:2.3:a:sqlalchemy:sqlalchemy:1.3.0:beta2:*:*:*:*:*:* |
= 1.3.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | opensuse | backports_slecpe:2.3:a:opensuse:backports_sle:15.0:-:*:*:*:*:*:* |
= 15.0 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:* |
= 15.0 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* |
= 15.1 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:-:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linux_euscpe:2.3:o:redhat:enterprise_linux_eus:8.1:*:*:*:*:*:*:* |
= 8.1 | |
| NVD | redhat | enterprise_linux_euscpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_euscpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | oracle | communications_operations_monitorcpe:2.3:a:oracle:communications_operations_monitor:4.2:*:*:*:*:*:*:* |
= 4.2 | |
| NVD | oracle | communications_operations_monitorcpe:2.3:a:oracle:communications_operations_monitor:4.3:*:*:*:*:*:*:* |
= 4.3 | |
| OSV | PyPI | sqlalchemy | < 1.3.0b3 | 1.3.0b3 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00087.html · Mailing List, Third Party Advisory, WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00010.html · Mailing List, Third Party Advisory, WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00016.html · Mailing List, Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2019:0981 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2019:0984 · Third Party Advisory, WEB, ADVISORY
- https://github.com/sqlalchemy/sqlalchemy/issues/4481 · Exploit, Third Party Advisory, WEB, REPORT
- https://lists.debian.org/debian-lts-announce/2019/03/msg00020.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2021/11/msg00005.html · Mailing List, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpujan2021.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-7164 · ADVISORY
- https://github.com/sqlalchemy/sqlalchemy/commit/30307c4616ad67c01ddae2e1e8e34fabf6028414 · WEB
- https://github.com/advisories/GHSA-887w-45rq-vxgf · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/sqlalchemy/PYSEC-2019-123.yaml · WEB
- https://github.com/sqlalchemy/sqlalchemy · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 20 Feb 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Feb 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2019)