{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2012-0805","id":"CVE-2012-0805","title":"SQLAlchemy vulnerable to SQL injection","description":"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.","descriptionLong":"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.","published":"2012-06-05T22:00:00.000Z","updated":"2026-06-16T23:38:17.657Z","reserved":"2012-01-19T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"sqlalchemy","purl":"pkg:pypi/sqlalchemy","ranges":["<0.7.0b4","<0.7.0"],"fixed":["0.7.0b4","0.7.0"],"advisory":"GHSA-hfg2-wf6j-x53p"}],"cwes":["CWE-89"],"aliases":["GHSA-hfg2-wf6j-x53p","PYSEC-2012-9"],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73756","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:059","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"https://bugs.launchpad.net/keystone/+bug/918608","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://www.sqlalchemy.org/trac/changeset/852b6a1a87e7/","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","evidence","fix","web"]},{"url":"http://www.debian.org/security/2012/dsa-2449","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://www.sqlalchemy.org/changelog/CHANGES_0_7_0","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/48771","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/48328","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/48327","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0369.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-0805","tags":["advisory"]},{"url":"https://github.com/sqlalchemy/sqlalchemy/commit/51fea2e159ca93daa0bc8066a5c35d8436d99418","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/sqlalchemy/PYSEC-2012-9.yaml","tags":["web"]},{"url":"https://github.com/sqlalchemy/sqlalchemy","tags":["package"]},{"url":"https://web.archive.org/web/20140721183117/http://secunia.com/advisories/48771","tags":["web"]},{"url":"https://web.archive.org/web/20140802043526/http://secunia.com/advisories/48328","tags":["web"]},{"url":"https://web.archive.org/web/20140802044957/http://secunia.com/advisories/48327","tags":["web"]},{"url":"http://www.sqlalchemy.org/trac/changeset/852b6a1a87e7","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hfg2-wf6j-x53p","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0283,"epssPercentile":0.8689,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2012-0805","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-0805","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2012-0805","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hfg2-wf6j-x53p","ok":true,"note":"GHSA-hfg2-wf6j-x53p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2012-0805","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}