CVE-2019-7164: SQLAlchemy vulnerable to SQL Injection via order_by parameter

CVE-2019-7164 · Severity: critical · CVSS 9.8 · Published 2019-04-16

SQLAlchemy before 1.3.0b3 allows SQL Injection via the order_by parameter. The fix (commit 30307c4) was applied only to the main branch and was never backported to the 1.2.x release line; all 1.2.x versions remain vulnerable.

Technologies: SQLAlchemy (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2019-7164 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-7164 being exploited in the wild.
How severe is CVE-2019-7164?
Critical severity, with a CVSS score of 9.8, published 16 April 2019.
Which products and versions are affected?
SQLAlchemy (PyPI) < 1.3.0b3, ECOSYSTEM:introduced=0,fixed=1.3.0b3.
Is there a fix for CVE-2019-7164?
Yes. SQLAlchemy (PyPI): upgrade to 1.3.0b3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2019-7164?
Check whether you run SQLAlchemy (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • SQLAlchemy (PyPI): upgrade to 1.3.0b3 or later
    pip install "SQLAlchemy>=1.3.0b3"

Affected products

  • SQLAlchemy (PyPI) < 1.3.0b3, ECOSYSTEM:introduced=0,fixed=1.3.0b3

Identifiers

  • CVE-2019-7164
  • GHSA-887w-45rq-vxgf
  • PYSEC-2019-123

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.