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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sqlalchemy | 0.6.7-1 | — |
| Debian 13 | sqlalchemy | 0.6.7-1 | — |
| Debian 12 | sqlalchemy | 0.6.7-1 | — |
| Debian 6.0 | sqlalchemy | 0.6.3-3+squeeze1 | DSA-2449-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | python-sqlalchemy | 0.5.5-3.el6_2 | RHSA-2012:0369 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | sqlalchemy | < 0.7.0b4 | 0.7.0b4 | GHSA-hfg2-wf6j-x53p |
| PyPI | sqlalchemy | < 0.7.0 | 0.7.0 | PYSEC-2012-9 |
Advisories 2
- DSA-2449-1 sqlalchemy - missing input sanitization Debian Security (DSA / DLA) · Mar 9, 2026
- RHSA-2012:0369 Red Hat Security Advisory: python-sqlalchemy security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- sqlalchemy-select-sql-injection(73756) vdb-entry
- MDVSA-2012:059 vendor-advisory
- https://bugs.launchpad.net/keystone/+bug/918608
- http://www.sqlalchemy.org/trac/changeset/852b6a1a87e7/
- DSA-2449 vendor-advisory
- http://www.sqlalchemy.org/changelog/CHANGES_0_7_0
- 48771 third-party-advisory
- 48328 third-party-advisory
- 48327 third-party-advisory
- RHSA-2012:0369 vendor-advisory