The init_request_info function in sapi/cgi/cgi_main.c in PHP before 5.2.6 does not…
Priority MEDIUM 55CWE-131Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-131 and the CVSS impact.
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.
Why it matters now
EPSS 0.10918 95th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed Red Hat: 1 advisory
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | before 5.2.6 | Vulnerable | PHP |
| cpe:2.3:o:fedoraproject:fedora:8:*:*:*:*:*:*:* | 8 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:9:*:*:*:*:*:*:* | 9 | Vulnerable | Fedoraproject |
| cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:* | 6.06 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* | 7.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* | 7.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:*:*:*:* | 8.04 | Vulnerable | Canonical |
| cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* | before 10.5.4 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x_server:*:*:*:*:*:*:*:* | before 10.5.4 | Vulnerable | Apple |
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions before 5.2.6 Vulnerable ·PHP
- cpe:2.3:o:fedoraproject:fedora:8:*:*:*:*:*:*:* Versions 8 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:9:*:*:*:*:*:*:* Versions 9 Vulnerable ·Fedoraproject
- cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:* Versions 6.06 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* Versions 7.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* Versions 7.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:*:*:*:* Versions 8.04 Vulnerable ·Canonical
- cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* Versions before 10.5.4 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x_server:*:*:*:*:*:*:*:* Versions before 10.5.4 Vulnerable ·Apple
Remediation
Red Hat 1 advisory
- RHSA-2008:0505 Released 2008-07-02 · Red Hat rating ModerateRed Hat Application Stack v2.1 security and enhancement update
- Red Hat Application Stack v2 for Enterprise Linux (v.5) httpd-2.2.8-1.el5s2, httpd-2.2.8-1.el5s2.i386, httpd-devel-2.2.8-1.el5s2 +47
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2008-0599
- 2026-10-03 Alias added: GHSA-m9m5-q9x5-6877
References
Advisory 13
Sources
- CVE-2008-0599 · CVE Program
- CVE-2008-0599 · NVD
- FIRST EPSS
- GHSA-m9m5-q9x5-6877 · GitHub Advisory Database · CC BY 4.0
- CVE-2008-0599 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences