VDB
CVE-2019-7164
CVE-2019-7164
PUBLISHED
CVSS 9.800000190734863 CRITICAL
SQLAlchemy vulnerable to SQL Injection via order_by parameter
Reported by mitre · Published February 20, 2019
sqlalchemy is fixed in 1.3.0b3, 1.3.0 and 1.2.18 (PyPI)
SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2 allows SQL Injection via the order_by parameter.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sqlalchemy | PyPI | 1.3.0b3, 1.3.0, 1.2.18 |
| sqlalchemy | sqlalchemy | 1.2.17 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | sqlalchemy | 0 |
Timeline
- Feb 20, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (9 in total, the first dated here)
- Sep 8, 2026 Coalition ESS Score
- Sep 20, 2026 CVE Updated
- Oct 31, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-7164
vulnetix vdb fixes CVE-2019-7164
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-7164/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20190318 [SECURITY] [DLA 1718-1] sqlalchemy security update mailing-listx_refsource_MLIST
- RHSA-2019:0984 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:0981 vendor-advisoryx_refsource_REDHAT
- openSUSE-SU-2019:2039 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:2064 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:2078 vendor-advisoryx_refsource_SUSE
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20211106 [SECURITY] [DLA 2811-1] sqlalchemy security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-7164 advisory
- https://github.com/advisories/GHSA-887w-45rq-vxgf advisory
- https://github.com/sqlalchemy/sqlalchemy/commit/30307c4616ad67c01ddae2e1e8e34fabf6028414 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/sqlalchemy/PYSEC-2019-123.yaml advisory
- https://github.com/sqlalchemy/sqlalchemy url