Description
pdo_sql_parser.re in the PDO extension in PHP before 5.3.14 and 5.4.x before 5.4.4 does not properly determine the end of the query string during parsing of prepared statements, which allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted parameter value.
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 6.0 | php5 | 5.3.3-7+squeeze14 | DSA-2527-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 5.4.3 - PDO Memory Access Violation Denial of Service EDB-37566 · dos · Aug 2, 2012 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-2527-1 php5 - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20120802 Re: CVE Request: php5 pdo array overread/crash mailing-list
- DSA-2527 vendor-advisory
- http://www.php.net/ChangeLog-5.php
- [oss-security] 20120802 CVE Request: php5 pdo array overread/crash mailing-list
- https://bugs.php.net/bug.php?id=61755
- 20120610 [php<=5.4.3] Parsing Bug in PHP PDO prepared statements may lead to access violation mailing-list
- MDVSA-2012:108 vendor-advisory
- USN-1569-1 vendor-advisory
- https://bugzilla.novell.com/show_bug.cgi?id=769785
- SUSE-SU-2012:1033 vendor-advisory