Vulnerabilities / CVE-2019-7164

critical

CVE-2019-7164

python-sqlalchemy: SQL Injection when the order_by parameter can be controlled

Published Modified CWE 89
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat7.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (low).

Description

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

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipsqlalchemy1.3.0b3
alma 8python27:2.7::python-psycopg2-doc, python27:2.7::python2-Cython, python27:2.7::python2-PyMySQL and 23 more2.7.5-7.module_el8.6.0+2781+fed64c13 and 22 more
debian 11sqlalchemy1.2.18+ds1-2
debian 12sqlalchemy1.2.18+ds1-2
debian 13sqlalchemy1.2.18+ds1-2
debian 14sqlalchemy1.2.18+ds1-2
debian 8sqlalchemy0.9.8+dfsg-0.1+deb8u1
debian 9sqlalchemy1.0.15+ds1-1+deb9u1
echosqlalchemy1.2.18+ds1-2
Oracle Linux 8babel, python-nose-docs, python-psycopg2-doc and 74 more2.5.1-9.module+el8.0.0+5233+93973c75 and 52 more
Red Hatcalamari-server, python-sqlalchemy, python-sqlalchemy-doc and 4 moreno fix listed
rocky 8python27:2.7::babel, python27:2.7::python-psycopg2-doc, python27:2.7::python2-Cython and 34 more2.5.1-9.module+el8.4.0+403+9ae17a31 and 28 more
Show all 156 entries from 13 sources
SourcePackageFixed in
pip::GitHub Security Advisory pipsqlalchemy1.3.0b3
alma 8python27:2.7::python-psycopg2-doc2.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-coverage4.5.1-4.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-docutils0.14-12.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-funcsigs1.0.2-13.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-idna2.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-ipaddress1.0.18-6.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-markupsafe0.23-19.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-mock2.0.0-13.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pluggy0.6.0-8.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-psycopg22.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-psycopg2-debug2.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-psycopg2-tests2.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-py1.5.3-6.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pysocks1.6.8-6.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pytest3.4.2-13.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pytest-mock1.9.0-4.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pytz2017.2-12.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pyyaml3.12-16.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-rpm-macros3-38.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-setuptools_scm1.15.7-6.module_el8.6.0+2781+fed64c13
alma 8python36:3.6::python3-docs3.6.7-2.module_el8.5.0+135+5ce32bc4
alma 8python36:3.6::python3-docutils0.14-12.module_el8.5.0+135+5ce32bc4
debian 11sqlalchemy1.2.18+ds1-2
debian 12sqlalchemy1.2.18+ds1-2
debian 13sqlalchemy1.2.18+ds1-2
debian 14sqlalchemy1.2.18+ds1-2
debian 8sqlalchemy0.9.8+dfsg-0.1+deb8u1
debian 9sqlalchemy1.0.15+ds1-1+deb9u1
echosqlalchemy1.2.18+ds1-2
Oracle Linux 8babel2.5.1-9.module+el8.0.0+5233+93973c75
Oracle Linux 8python-nose-docs1.3.7-30.module+el8.0.0+5233+93973c75
Oracle Linux 8python-psycopg2-doc2.7.5-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python-pymongo-doc3.6.1-9.module+el8.0.0+5217+22a49f57
Oracle Linux 8python-sqlalchemy-doc1.3.2-1.module+el8.0.0+5233+93973c75
Oracle Linux 8python-virtualenv-doc15.1.0-18.module+el8.0.0+5217+22a49f57
Oracle Linux 8python22.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-Cython0.28.1-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-PyMySQL0.8.0-10.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-attrs17.4.0-10.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-babel2.5.1-9.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-backports1.0-15.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-backports-ssl_match_hostname3.5.0.1-11.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-bson3.6.1-9.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-chardet3.0.4-10.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-coverage4.5.1-4.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-debug2.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-devel2.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-dns1.15.0-9.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-docs2.7.15-4.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-docs-info2.7.15-4.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-docutils0.14-12.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-funcsigs1.0.2-13.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-idna2.5-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-ipaddress1.0.18-6.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-jinja22.10-8.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-libs2.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-lxml4.2.3-3.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-markupsafe0.23-19.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-mock2.0.0-13.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-nose1.3.7-30.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-numpy1:1.14.2-10.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-numpy-doc1:1.14.2-10.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-numpy-f2py1:1.14.2-10.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pip9.0.3-13.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pluggy0.6.0-8.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-psycopg22.7.5-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-psycopg2-debug2.7.5-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-psycopg2-tests2.7.5-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-py1.5.3-6.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pygments2.2.0-20.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pymongo3.6.1-9.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pymongo-gridfs3.6.1-9.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pysocks1.6.8-6.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pytest3.4.2-13.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pytest-mock1.9.0-4.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pytz2017.2-12.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-pyyaml3.12-16.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-requests2.20.0-2.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-rpm-macros3-38.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-scipy1.0.0-19.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-setuptools39.0.1-11.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-setuptools_scm1.15.7-6.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-six1.11.0-5.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-sqlalchemy1.3.2-1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-test2.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-tkinter2.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-tools2.7.15-22.0.1.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-urllib31.23-7.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-virtualenv15.1.0-18.module+el8.0.0+5233+93973c75
Oracle Linux 8python2-wheel1:0.30.0-13.module+el8.0.0+5233+93973c75
Oracle Linux 8python3-PyMySQL0.8.0-10.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-bson3.6.1-9.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-docs3.6.7-2.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-docutils0.14-12.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-nose1.3.7-30.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-pygments2.2.0-20.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-pymongo3.6.1-9.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-pymongo-gridfs3.6.1-9.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-scipy1.0.0-19.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-sqlalchemy1.3.2-1.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-virtualenv15.1.0-18.module+el8.0.0+5217+22a49f57
Oracle Linux 8python3-wheel1:0.30.0-13.module+el8.0.0+5217+22a49f57
Oracle Linux 8python363.6.8-2.module+el8.0.0+5217+22a49f57
Oracle Linux 8python36-debug3.6.8-2.module+el8.0.0+5217+22a49f57
Oracle Linux 8python36-devel3.6.8-2.module+el8.0.0+5217+22a49f57
Oracle Linux 8python36-rpm-macros3.6.8-2.module+el8.0.0+5217+22a49f57
Red Hatcalamari-serverno fix listed
Red Hatpython-sqlalchemyno fix listed
Red Hatpython-sqlalchemy-docno fix listed
Red Hatpython2-sqlalchemyno fix listed
Red Hatpython27-python-sqlalchemyno fix listed
Red Hatrh-python35-python-sqlalchemyno fix listed
Red Hatrh-python36-python-sqlalchemyno fix listed
rocky 8python27:2.7::babel2.5.1-9.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python-psycopg2-doc2.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-Cython0.28.1-7.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-PyMySQL0.8.0-10.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-attrs17.4.0-10.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-babel2.5.1-9.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-chardet3.0.4-10.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-coverage4.5.1-4.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-docutils0.14-12.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-funcsigs1.0.2-13.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-idna2.5-7.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-ipaddress1.0.18-6.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-jinja22.10-8.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-markupsafe0.23-19.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-mock2.0.0-13.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-pluggy0.6.0-8.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-psycopg22.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-psycopg2-debug2.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-psycopg2-tests2.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-py1.5.3-6.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pysocks1.6.8-6.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pytest3.4.2-13.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pytest-mock1.9.0-4.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-pytz2017.2-12.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pyyaml3.12-16.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-rpm-macros3-38.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-setuptools_scm1.15.7-6.module+el8.4.0+403+9ae17a31
rocky 8python36:3.6::python-nose-docs1.3.7-30.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python3-PyMySQL0.8.0-10.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python3-docs3.6.7-2.module+el8.4.0+597+ddf0ddea
rocky 8python36:3.6::python3-docutils0.14-12.module+el8.4.0+597+ddf0ddea
rocky 8python36:3.6::python3-nose1.3.7-30.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python3-pygments2.2.0-20.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python363.6.8-2.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python36-debug3.6.8-2.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python36-devel3.6.8-2.module+el8.3.0+120+426d8baf
rocky 8python36:3.6::python36-rpm-macros3.6.8-2.module+el8.3.0+120+426d8baf
ubuntu 18.04-ESMsqlalchemyno fix listed

References

All 24 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.