#VU44018 SQL injection in SQLAlchemy - CVE-2012-0805


| Updated: 2020-08-11

Vulnerability identifier: #VU44018

Vulnerability risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2012-0805

CWE-ID: CWE-89

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
SQLAlchemy
Universal components / Libraries / Software for developers

Vendor: SQLAlchemy

Description

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 (1) limit or (2) offset keyword to the select function, or unspecified vectors to the (3) select.limit or (4) select.offset function. 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.

Mitigation
Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Vulnerable software versions

SQLAlchemy: 0.6.0 - 0.7.0


External links
https://rhn.redhat.com/errata/RHSA-2012-0369.html
https://secunia.com/advisories/48327
https://secunia.com/advisories/48328
https://secunia.com/advisories/48771
https://www.debian.org/security/2012/dsa-2449
https://www.mandriva.com/security/advisories?name=MDVSA-2012:059
https://www.sqlalchemy.org/changelog/CHANGES_0_7_0
https://www.sqlalchemy.org/trac/changeset/852b6a1a87e7/
https://bugs.launchpad.net/keystone/+bug/918608
https://exchange.xforce.ibmcloud.com/vulnerabilities/73756


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability