Skip to content
OpenAdvisories
Unscored CVE-2008-0599 EUVD-2008-0609GHSA-m9m5-q9x5-6877

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 May 5, 2008 · Updated Aug 7, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 5.0 php5 5.2.5-3+lenny1 DTSA-135-1
ReleasePackageFixed inAdvisory
Red Hat Rhel Application Stack 2 httpd +2 2.2.8-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 mod_jk +1 1.2.26-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 mod_perl +1 2.0.4-3.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 mod_ssl 1:2.2.8-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 mysql +6 5.0.50sp1a-2.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 mysql-connector-odbc 3.51.24r1071-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 mysql-jdbc 5.0.8-1jpp.1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 perl-DBD-MySQL 4.006-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 perl-DBI 1.604-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 php +18 5.2.6-2.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 postgresql +11 8.2.9-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 postgresql-jdbc 8.2.508-1jpp.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 postgresql-odbc 08.02.0500-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 postgresqlclient81 8.1.11-1.el5s2 RHSA-2008:0505
Red Hat Rhel Application Stack 2 unixODBC +2 2.2.12-8.el5s2 RHSA-2008:0505
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php7 7.4.24-1.1 openSUSE-SU-2024:11167-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1

Advisories 4

References