cve.bz

CVE-2008-0599 Incorrect Calculation of Buffer Size

9.8 criticalExploit referenceEPSS 11%

Critical (9.8). EPSS 11% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2008-0599 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2008-0599?via=ask-ai-copy and https://cve.bz/cve/CVE-2008-0599?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2008-0599 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpbefore 5.2.6
fedoraproject:fedora8
fedoraproject:fedora9
canonical:ubuntu_linux6.06
canonical:ubuntu_linux7.04
canonical:ubuntu_linux7.10
canonical:ubuntu_linux8.04
apple:mac_os_xbefore 10.5.4
apple:mac_os_x_serverbefore 10.5.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian5.0php55.2.5-3+lenny1DTSA-135-1
Red Hatrhel_application_stack:2httpd, httpd-devel, httpd-manual and 1 more0:2.2.8-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mod_jk, mod_jk-ap20, mod_jk-debuginfo0:1.2.26-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mod_perl, mod_perl-devel, mod_perl-debuginfo0:2.0.4-3.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mod_ssl1:2.2.8-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mysql, mysql-libs, mysql-test and 5 more0:5.0.50sp1a-2.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mysql-connector-odbc, mysql-connector-odbc-debuginfo0:3.51.24r1071-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mysql-jdbc0:5.0.8-1jpp.1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2perl-DBD-MySQL, perl-DBD-MySQL-debuginfo0:4.006-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2perl-DBI, perl-DBI-debuginfo0:1.604-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2php, php-gd, php-cli and 17 more0:5.2.6-2.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2postgresql, postgresql-tcl, postgresql-docs and 10 more0:8.2.9-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2postgresql-jdbc, postgresql-jdbc-debuginfo0:8.2.508-1jpp.el5s2RHSA-2008:0505
3 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedphp77.4.24-1.1openSUSE-SU-2024:11167-1
openSUSETumbleweedphp88.0.11-1.1openSUSE-SU-2024:11169-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Not vulnerable. This issue did not affect the versions of PHP as shipped with Red Hat Enterprise Linux 2.1, 3, 4, or 5, and Red Hat Application Stack v1.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2008-0599.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON