CVE-2008-0599
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 10.9% chance of exploitation in the next 30 days (EPSS). Higher than most.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 10.9% in the next 30 days (EPSS).
- Severity: 9.8 CRITICAL (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 10.9% · EPSS, next 30 days
- Weakness
- CWE-131
- Record status
- Modified
Affected
- PHP < 5.2.6
- Fedoraproject Fedora 8
- Fedoraproject Fedora 9
- Canonical Ubuntu Linux 6.06
- Canonical Ubuntu Linux 7.04
- Canonical Ubuntu Linux 7.10
- Canonical Ubuntu Linux 8.04
- Apple Mac Os X < 10.5.4
Attack profile CVSS 3.1 · 9.8
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2008-0599.md and follow it. Check whether this project is affected by CVE-2008-0599. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://secunia.com/advisories/30048
- http://secunia.com/advisories/30345
- http://secunia.com/advisories/30048
- http://secunia.com/advisories/30345
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=u
- 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/30083
- http://secunia.com/advisories/30345
- http://secunia.com/advisories/30616
- http://secunia.com/advisories/30757
- http://secunia.com/advisories/30828
- http://secunia.com/advisories/31200
- http://secunia.com/advisories/31326
- http://secunia.com/advisories/32746
- http://secunia.com/advisories/35650
- http://security.gentoo.org/glsa/glsa-200811-05.xml
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0176
- http://www.kb.cert.org/vuls/id/147027
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:127
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:128
- http://www.openwall.com/lists/oss-security/2008/05/02/2
- http://www.php.net/ChangeLog-5.php
- http://www.redhat.com/support/errata/RHSA-2008-0505.html
- http://www.securityfocus.com/archive/1/492535/100/0/threaded
- http://www.securityfocus.com/bid/29009