CVE-2008-0599 in the critical feed json
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 t…
published 2008-05-05 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-0609
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 10.9%
- EPSS 10.9% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- php php 5.2.6
- apple mac_os_x 10.5.4
- apple mac_os_x_server 10.5.4
- php RHEL 2 APPLICATION_STACK 5.2.6-2.el5s2
- httpd RHEL 2 APPLICATION_STACK 2.2.8-1.el5s2
- mysql RHEL 2 APPLICATION_STACK 5.0.50sp1a-2.el5s2
- mod_jk RHEL 2 APPLICATION_STACK 1.2.26-1.el5s2
- php-gd RHEL 2 APPLICATION_STACK 5.2.6-2.el5s2
- mod_ssl RHEL 2 APPLICATION_STACK 1:2.2.8-1.el5s2
- php-cli RHEL 2 APPLICATION_STACK 5.2.6-2.el5s2
- php-dba RHEL 2 APPLICATION_STACK 5.2.6-2.el5s2
red hat advisories RHSA-2008:0505
- php7 openSUSE Tumbleweed 7.4.24-1.1
- php8 openSUSE Tumbleweed 8.0.11-1.1
opensuse advisories openSUSE-SU-2024:11167-1openSUSE-SU-2024:11169-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-0599 updated cvss 4.3
php: buffer overflow in a CGI path translation
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
10.92% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- cvs.php.net 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 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-131 Incorrect Calculation of Buffer Size
- Technology feeds
References
-
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
broken-link, exploit
-
redhat.com
/archives/fedora-package-announce/2008-June/msg00779.html
vendor-advisory, mailing-list
-
h20000.www2.hp.com
/bizsupport/TechSupport/Document.jsp?objectID=c01476437
vendor-advisory, broken-link
-
marc.info
/?l=bugtraq&m=125631037611762&w=2
vendor-advisory, mailing-list
-
lists.apple.com
/archives/security-announce//2008/Jul/msg00003.html
vendor-advisory, mailing-list
-
security.gentoo.org
/glsa/glsa-200811-05.xml
vendor-advisory, third-party-advisory
-
marc.info
/?l=bugtraq&m=124654546101607&w=2
vendor-advisory, mailing-list
-
redhat.com
/archives/fedora-package-announce/2008-June/msg00773.html
vendor-advisory, mailing-list
-
mandriva.com
/security/advisories?name=MDVSA-2008:128
vendor-advisory, broken-link
-
ubuntu.com
/usn/usn-628-1
vendor-advisory, third-party-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.488951
vendor-advisory, broken-link
-
redhat.com
/support/errata/RHSA-2008-0505.html
vendor-advisory, broken-link
-
mandriva.com
/security/advisories?name=MDVSA-2008:127
vendor-advisory, broken-link
-
secunia.com
/advisories/30345
third-party-advisory, broken-link, vendor-advisory
-
secunia.com
/advisories/30048
third-party-advisory, broken-link, vendor-advisory
-
vupen.com
/english/advisories/2008/1412
vdb-entry, broken-link
-
securityfocus.com
/archive/1/492535/100/0/threaded
mailing-list, broken-link, third-party-advisory, vdb-entry
-
secunia.com
/advisories/32746
third-party-advisory, broken-link
-
secunia.com
/advisories/30616
third-party-advisory, broken-link
-
secunia.com
/advisories/30083
third-party-advisory, broken-link
-
securityfocus.com
/bid/29009
vdb-entry, broken-link, third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5510
vdb-entry, signature, broken-link
-
secunia.com
/advisories/30828
third-party-advisory, broken-link
-
vupen.com
/english/advisories/2008/2268
vdb-entry, broken-link
-
exchange.xforce.ibmcloud.com
/vulnerabilities/42137
vdb-entry, third-party-advisory
-
wiki.rpath.com
/wiki/Advisories:rPSA-2008-0176
broken-link
-
openwall.com
/lists/oss-security/2008/05/02/2
mailing-list
-
php.net
/ChangeLog-5.php
release-notes
-
secunia.com
/advisories/31200
third-party-advisory, broken-link
-
secunia.com
/advisories/30757
third-party-advisory, broken-link
-
secunia.com
/advisories/31326
third-party-advisory, broken-link
-
securitytracker.com
/id?1019958
vdb-entry, broken-link, third-party-advisory
-
kb.cert.org
/vuls/id/147027
third-party-advisory, us-government-resource
-
issues.rpath.com
/browse/RPL-2503
broken-link
-
vupen.com
/english/advisories/2008/1810/references
vdb-entry, broken-link
-
secunia.com
/advisories/35650
third-party-advisory, broken-link
Sources
- CVE List CVE-2008-0599
- NVD CVE-2008-0599
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.