Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sqlalchemy
  4. ›
  5. CVE-2019-7164

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

April 16, 2019 (updated April 24, 2026)

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.

References

  • access.redhat.com/errata/RHSA-2019:0981
  • access.redhat.com/errata/RHSA-2019:0984
  • github.com/advisories/GHSA-887w-45rq-vxgf
  • github.com/pypa/advisory-database/tree/main/vulns/sqlalchemy/PYSEC-2019-123.yaml
  • github.com/sqlalchemy/sqlalchemy
  • github.com/sqlalchemy/sqlalchemy/commit/30307c4616ad67c01ddae2e1e8e34fabf6028414
  • github.com/sqlalchemy/sqlalchemy/issues/4481
  • lists.debian.org/debian-lts-announce/2019/03/msg00020.html
  • lists.debian.org/debian-lts-announce/2021/11/msg00005.html
  • nvd.nist.gov/vuln/detail/CVE-2019-7164
  • www.oracle.com/security-alerts/cpujan2021.html

Code Behaviors & Features

Detect and mitigate CVE-2019-7164 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.0b3

Fixed versions

  • 1.3.0b3

Solution

Upgrade to version 1.3.0b3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/sqlalchemy/CVE-2019-7164.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:00 +0000.