Home / Sqlalchemy / Sqlalchemy / CVE-2012-0805
CVE-2012-0805: is it exploited, and which versions of Sqlalchemy are affected and fixed?
CVE-2012-0805 is a SQL injection vulnerability in Sqlalchemy. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:08 UTC). Affected: SQLAlchemy before 0.7.0b4 (GitHub advisory GHSA-hfg2-wf6j-x53p). Fixed in 0.7.0b4 (GitHub advisory GHSA-hfg2-wf6j-x53p). Severity: High (7.5, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:08 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:49 UTC.
What is CVE-2012-0805?
Multiple SQL injection vulnerabilities in SQLAlchemy before 0.7.0b4, as used in Keystone, allow remote attackers to execute arbitrary SQL commands 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.
From the CVE record by redhat, last updated August 6, 2024, 18:38 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | SQLAlchemy | < 0.7.0b4 | 0.7.0b4 | GHSA-hfg2-wf6j-x53p |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 28, 2024. Summary: SQLAlchemy vulnerable to SQL injection.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sqlalchemy | sqlalchemy | through 0.7.0 | application |
| sqlalchemy | sqlalchemy | 0.6.0 | application |
| sqlalchemy | sqlalchemy | 0.6.1 | application |
| sqlalchemy | sqlalchemy | 0.6.2 | application |
| sqlalchemy | sqlalchemy | 0.6.3 | application |
| sqlalchemy | sqlalchemy | 0.6.4 | application |
| sqlalchemy | sqlalchemy | 0.6.5 | application |
| sqlalchemy | sqlalchemy | 0.6.6 | application |
| sqlalchemy | sqlalchemy | 0.6.7 | application |
| sqlalchemy | sqlalchemy | 0.7.0 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:38 UTC.
How severe is CVE-2012-0805?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-0805 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.83% probability of exploitation activity in the next 30 days, percentile 87.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- sqlalchemy-select-sql-injection(73756) vdb-entry, x_refsource_XF
- MDVSA-2012:059 vendor-advisory, x_refsource_MANDRIVA
- https://bugs.launchpad.net/keystone/+bug/918608 x_refsource_MISC
- http://www.sqlalchemy.org/trac/changeset/852b6a1a87e7/ x_refsource_CONFIRM
- DSA-2449 vendor-advisory, x_refsource_DEBIAN
- http://www.sqlalchemy.org/changelog/CHANGES_0_7_0 x_refsource_CONFIRM
- 48771 third-party-advisory, x_refsource_SECUNIA
- 48328 third-party-advisory, x_refsource_SECUNIA
- 48327 third-party-advisory, x_refsource_SECUNIA
- RHSA-2012:0369 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- January 19, 2012
- Published
- June 5, 2012, 22:00 UTC
- CVE record updated
- August 6, 2024, 18:38 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:38 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:49 UTC; KEV December 3, 2026, 07:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Sqlalchemy?
- Feb 20, 2019CVE-2019-7164 Sqlalchemy: SQL injection
- Feb 6, 2019CVE-2019-7548 Sqlalchemy: SQL injection
Questions about CVE-2012-0805
Is CVE-2012-0805 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:08 UTC. FIRST's EPSS gives it a 2.83% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Sqlalchemy are affected by CVE-2012-0805?
SQLAlchemy before 0.7.0b4, per the GitHub advisory GHSA-hfg2-wf6j-x53p. The tables above give every range the sources list.
Which version fixes CVE-2012-0805?
0.7.0b4, per the GitHub advisory GHSA-hfg2-wf6j-x53p. Check the vendor's advisory before you rely on it.
How severe is CVE-2012-0805?
High (7.5, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-0805?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.