Critical severity · published May 5, 2008
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…
9.8
CVSS
10.9%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)10.9% · higher than 96% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
before 5.2.6 · source: NVD
FE
Fedora · Fedoraproject
8; 9 · source: NVD
MO
Mac OS X · Apple
before 10.5.4 · source: NVD
MO
Mac OS X Server · Apple
before 10.5.4 · source: NVD
UL
Ubuntu Linux · Canonical
6.06; 7.04; 7.10; 8.04 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2008-0599
CVE.org
https://www.cve.org/CVERecord?id=CVE-2008-0599
Broken Link
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
Broken Link
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01476437
Mailing List
http://lists.apple.com/archives/security-announce//2008/Jul/msg00003.html
Mailing List
http://marc.info/?l=bugtraq&m=124654546101607&w=2
Mailing List
http://marc.info/?l=bugtraq&m=125631037611762&w=2
Broken Link
http://secunia.com/advisories/30048
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
9.8
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
