The init_request_info function in sapi/cgi/cgi_main.c in PHP before 5.2.6 does not properly consider operator precedence when calculating the length of PATH_TRANSLATED, which might allow remote attackers to execute arbitrary code via a crafted URI.
https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00779.html
https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html
https://exchange.xforce.ibmcloud.com/vulnerabilities/42137
http://www.ubuntu.com/usn/usn-628-1
http://www.php.net/ChangeLog-5.php
http://www.openwall.com/lists/oss-security/2008/05/02/2
http://www.kb.cert.org/vuls/id/147027
http://security.gentoo.org/glsa/glsa-200811-05.xml
http://marc.info/?l=bugtraq&m=125631037611762&w=2
http://marc.info/?l=bugtraq&m=124654546101607&w=2
http://lists.apple.com/archives/security-announce//2008/Jul/msg00003.html