CVE-2019-7164: SQL Injection

Published Feb 1, 2019
·
Updated

A vulnerability was found in SQLAlchemy 1.2.17. An SQL Injection when the orderby parameter can be controlled.

Upstream issue:

https://github.com/sqlalchemy/sqlalchemy/issues/4481

Upstream patch:

https://github.com/sqlalchemy/sqlalchemy/commit/30307c4616ad67c01ddae2e1e8e34fabf6028414

Other sources

SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2 allows SQL Injection via the orderby parameter.

Affected Software

20 affected componentsFixes available
pip/SQLAlchemy>=0<1.2.18
1.2.18
pip/SQLAlchemy>=1.3.0b1<1.3.0b3
1.3.0b3
SQLAlchemy SQLAlchemy<=1.2.17
SQLAlchemy SQLAlchemy=1.3.0-beta1
SQLAlchemy SQLAlchemy=1.3.0-beta2
Debian Debian Linux=8.0
Debian Debian Linux=9.0
openSUSE Backports SLE=15.0
openSUSE Leap=15.0
openSUSE Leap=15.1
redhat Enterprise Linux=8.0
redhat Enterprise Linux Eus=8.1
redhat Enterprise Linux Eus=8.2
redhat Enterprise Linux Eus=8.4
redhat Enterprise Linux Server Aus=8.2
redhat Enterprise Linux Server Aus=8.4
redhat Enterprise Linux Server Tus=8.2
redhat Enterprise Linux Server Tus=8.4
Oracle Communications Operations Monitor=4.2
Oracle Communications Operations Monitor=4.3

Event History

Feb 1, 2019
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Feb 19, 2019
Data Sourced
via Red Hat·02:04 AM
DescriptionSeverityAffected Software
Feb 20, 2019
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·12:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 16, 2019
Advisory Published
via GitHub·03:50 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2019-7164?

The severity of CVE-2019-7164 is critical with a CVSS score of 9.8.

2

How does SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2 allow SQL Injection?

SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2 allows SQL Injection via the order_by parameter.

3

What software versions are affected by CVE-2019-7164?

The following software versions are affected by CVE-2019-7164: SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2.

4

How can I fix CVE-2019-7164?

To fix CVE-2019-7164, upgrade SQLAlchemy to version 1.3.0 or later.

5

Where can I find more information about CVE-2019-7164?

You can find more information about CVE-2019-7164 at the following links: [CVE-2019-7164](https://www.cve.org/CVERecord?id=CVE-2019-7164), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2019-7164), [Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1678520), [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2019:0981).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203