SQL injection in SQLAlchemy - CVE-2019-7548

 

SQL injection in SQLAlchemy - CVE-2019-7548

Published: September 2, 2019


Vulnerability identifier: #VU20503
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-7548
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.

The vulnerability exists due to insufficient sanitization of user-supplied data passed via the "group_by" parameter. A remote attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.

Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.


Affected software

SQLAlchemy
Red Hat Enterprise Linux for x86_64
Opensuse
SUSE Linux
openEuler
python-sqlalchemy
python-sqlalchemy-debuginfo
python-sqlalchemy-debugsource
python2-sqlalchemy
python3-sqlalchemy
python-sqlalchemy-help

How to mitigate CVE-2019-7548

Install update from vendor's website.

SQLAlchemy - update to 1.2.18
python-sqlalchemy - update to 1.2.19-3
python-sqlalchemy-debuginfo - update to 1.2.19-3
python-sqlalchemy-debugsource - update to 1.2.19-3
python2-sqlalchemy - update to 1.2.19-3
python3-sqlalchemy - update to 1.2.19-3
python-sqlalchemy-help - update to 1.2.19-3

External References

Related Security Bulletins