First published: Tue May 08 2012(Updated: )
A buffer overflow was reported in the apache_request_headers() function in PHP 5.4.x. The apache_request_headers() function has a loop that copies the name of an environment variable while it fixes cases and converts '_' to '-'. While this loop is supposed to only copy the variable name ("Cookie" from "HTTP_COOKIE"), it instead continues to the end of the entire environment variable. If the string being copied is longer than 128 bytes, it will overflow the buffer, resulting in a crash of the php interpretter. Statement: Not vulnerable. This issue did not affect the versions of PHP as shipped with Red Hat Enterprise Linux 4, 5, or 6. This flaw only affects PHP 5.4.0 through 5.4.2. External Reference: <a href="http://www.php.net/archive/2012.php#id2012-05-08-1">http://www.php.net/archive/2012.php#id2012-05-08-1</a>
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/php | <5.4.3 | 5.4.3 |
PHP | =5.4.0 | |
PHP | =5.4.1 | |
PHP | =5.4.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2012-2329 has a medium severity level due to the potential for a buffer overflow in the apache_request_headers() function.
To fix CVE-2012-2329, upgrade your PHP installation to version 5.4.3 or later.
CVE-2012-2329 affects PHP versions 5.4.0 through 5.4.2.
Yes, CVE-2012-2329 can potentially lead to remote code execution due to the buffer overflow.
CVE-2012-2329 is not specific to any operating system but affects installations of PHP across various environments that use vulnerable versions.