CVE-2011-1522 SQL injection in n/a
Remote attackers can execute arbitrary SQL commands via limit or offset parameters in the Doctrine DBAL library, potentially compromising database integrity and confidentiality.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2011-1522?
CVE-2011-1522 is a high-severity SQL injection vulnerability in n/a, published on 3 May 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Multiple SQL injection vulnerabilities in the Doctrine\DBAL\Platforms\AbstractPlatform::modifyLimitQuery function in Doctrine 1.x before 1.2.4 and 2.x before 2.0.3 allow remote attackers to execute arbitrary SQL commands via the (1) limit or (2) offset field.
Weakness: CWE-89
Which versions are affected by CVE-2011-1522?
It affects 5 products.
Products include Doctrine-Project Doctrine, Doctrine-Project Doctrine1.2.0, Doctrine-Project Doctrine1.2.1, Doctrine-Project Doctrine1.2.2, Doctrine-Project Doctrine1.2.3.
How do I fix CVE-2011-1522?
Upgrade to a fixed version.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2011-1522 being exploited?
There is no known exploitation of CVE-2011-1522 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2011-1522, DSA-2223-1, GHSA-h7q6-v9rj-35qf.