Skip to content
Fencer Vulns
critical 9.8

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 products
    not 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

Sources

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.