CVE-2008-0599
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.
Does this matter?
EPSS puts the probability of exploitation in the next 30 days at 10.9%, higher than 96% of all known CVEs. Patch or mitigate before the next change window.
Description
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 10.92% probability · 96th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-131
- Affected
- php/php · fedoraproject/fedora · canonical/ubuntu linux · apple/mac os x · apple/mac os x server
- Source
- secalert@redhat.com
References
- http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.267.2.15.2.50.2.12&r2=1.267.2.15.2.50.2.13&diff_format=uBroken Link, Exploit
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01476437Broken Link
- http://lists.apple.com/archives/security-announce//2008/Jul/msg00003.htmlMailing List
- http://marc.info/?l=bugtraq&m=124654546101607&w=2Mailing List
- http://marc.info/?l=bugtraq&m=125631037611762&w=2Mailing List
- http://secunia.com/advisories/30048Broken Link, Vendor Advisory
- http://secunia.com/advisories/30083Broken Link
- http://secunia.com/advisories/30345Broken Link, Vendor Advisory
- http://secunia.com/advisories/30616Broken Link
- http://secunia.com/advisories/30757Broken Link
- http://secunia.com/advisories/30828Broken Link
- http://secunia.com/advisories/31200Broken Link
- http://secunia.com/advisories/31326Broken Link
- http://secunia.com/advisories/32746Broken Link
- http://secunia.com/advisories/35650Broken Link
- http://security.gentoo.org/glsa/glsa-200811-05.xmlThird Party Advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0176Broken Link
- http://www.kb.cert.org/vuls/id/147027Third Party Advisory, US Government Resource
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:127Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:128Broken Link
- http://www.openwall.com/lists/oss-security/2008/05/02/2Mailing List
- http://www.php.net/ChangeLog-5.phpRelease Notes
- http://www.redhat.com/support/errata/RHSA-2008-0505.htmlBroken Link
- http://www.securityfocus.com/archive/1/492535/100/0/threadedBroken Link, Third Party Advisory, VDB Entry
- http://www.securityfocus.com/bid/29009Broken Link, Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id?1019958Broken Link, Third Party Advisory, VDB Entry
- http://www.slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.488951Broken Link
- http://www.ubuntu.com/usn/usn-628-1Third Party Advisory
- http://www.vupen.com/english/advisories/2008/1412Broken Link
- http://www.vupen.com/english/advisories/2008/1810/referencesBroken Link
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.