Gentoo Logo

SQLAlchemy: SQL injection


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201209-16 / sqlalchemy
Release Date September 26, 2012
Latest Revision September 26, 2012: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-python/sqlalchemy < 0.7.4 >= 0.7.4 All supported architectures

Related bugreports: #407437


An input sanitation flaw in SQLAlchemy allows remote attacker to conduct SQL injection.

2.  Impact Information


SQLAlchemy is a Python SQL toolkit and Object Relational Mapper.


SQLAlchemy does not properly sanitize input passed from the “limit” and “offset” keywords to the select() function before using it in an SQL query.


A remote attacker could exploit this vulnerability to execute arbitrary SQL statements.

3.  Resolution Information


There is no known workaround at this time.


All SQLAlchemy users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-python/sqlalchemy-0.7.4"

4.  References


Page updated September 26, 2012

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.