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.
https://bugzilla.novell.com/show_bug.cgi?id=769785
https://bugs.php.net/bug.php?id=61755
http://www.ubuntu.com/usn/USN-1569-1
http://www.php.net/ChangeLog-5.php
http://www.openwall.com/lists/oss-security/2012/08/02/7
http://www.openwall.com/lists/oss-security/2012/08/02/3
http://www.mandriva.com/security/advisories?name=MDVSA-2012:108
http://www.debian.org/security/2012/dsa-2527
http://seclists.org/bugtraq/2012/Jun/60
http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00021.html