CVE-2008-0599

CRITICAL

PHP < 5.2.6 - Remote Code Execution via PATH_TRANSLATED Buffer Overflow

Title source: manual
STIX 2.1

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.

References (36)

Core 36
Core References
Broken Link vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/1412
Broken Link, Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/492535/100/0/threaded
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/32746
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30616
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=125631037611762&w=2
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30083
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce//2008/Jul/msg00003.html
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200811-05.xml
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=124654546101607&w=2
Broken Link, Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/29009
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30828
Broken Link vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2008:128
Broken Link vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/2268
Broken Link, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30345
Third Party Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-628-1
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/42137
Mailing List mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2008/05/02/2
Release Notes x_refsource_confirm
http://www.php.net/ChangeLog-5.php
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/31200
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30757
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/31326
Broken Link, Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1019958
Third Party Advisory, US Government Resource third-party-advisory x_refsource_cert-vn
http://www.kb.cert.org/vuls/id/147027
Broken Link x_refsource_confirm
https://issues.rpath.com/browse/RPL-2503
Broken Link vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2008-0505.html
Broken Link vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/1810/references
Broken Link vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2008:127
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/35650
Broken Link, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30048

Scores

CVSS v3 9.8
EPSS 0.1092
EPSS Percentile 95.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-131
Status published
Products (9)
apple/mac_os_x < 10.5.4
apple/mac_os_x_server < 10.5.4
canonical/ubuntu_linux 6.06
canonical/ubuntu_linux 7.04
canonical/ubuntu_linux 7.10
canonical/ubuntu_linux 8.04
fedoraproject/fedora 8
fedoraproject/fedora 9
php/php < 5.2.6
Published May 05, 2008
Tracked Since Feb 18, 2026