Back

CRITICAL

php: buffer overflow in a CGI path translation

Published May 5, 2008

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.

Affected products

Remediation

Red Hat 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.

Metrics

Weaknesses (1)

References (40)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner redhat
Published May 5, 2008
Updated Aug 7, 2024
Reserved Feb 5, 2008
NVD
Status Modified
Modified Jun 16, 2026
Red Hat
Severity Low
Public date May 1, 2008