CVE-2008-0599
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
10.918%
chance of exploitation in the next 30 days
higher than 96% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-131: Incorrect Calculation of Buffer Size
Timeline
- 2008-05-05Published by the CNA17:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | before 5.2.6fixed in 5.2.6 | 5.2.6 |
| apple mac_os_x | before 10.5.4fixed in 10.5.4 | 10.5.4 |
| apple mac_os_x_server | before 10.5.4fixed in 10.5.4 | 10.5.4 |
| canonical ubuntu_linux | 6.06no fix listed7.04no fix listed7.10no fix listed8.04no fix listed | not listednot listednot listednot listed |
| fedoraproject fedora | 8no fix listed9no fix listed | not listednot listed |
References
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01476437
- http://lists.apple.com/archives/security-announce//2008/Jul/msg00003.html
- http://marc.info/?l=bugtraq&m=124654546101607&w=2
- http://marc.info/?l=bugtraq&m=125631037611762&w=2
- http://secunia.com/advisories/30048
- http://secunia.com/advisories/30345
- http://security.gentoo.org/glsa/glsa-200811-05.xml
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:127
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:128
- http://www.redhat.com/support/errata/RHSA-2008-0505.html
- http://www.slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.488951
- http://www.ubuntu.com/usn/usn-628-1
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00779.html
- 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=u
- http://secunia.com/advisories/30083
- http://secunia.com/advisories/30616
- http://secunia.com/advisories/30757
- http://secunia.com/advisories/30828
- http://secunia.com/advisories/31200
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2008-0599'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2008-0599'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2008-0599'curl 'https://api.contrastcyber.com/cve_products/CVE-2008-0599'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).