Bug 820000 - (CVE-2012-2329) CVE-2012-2329 php: buffer overflow flaw in apache_request_headers() in PHP 5.4.x
CVE-2012-2329 php: buffer overflow flaw in apache_request_headers() in PHP 5.4.x
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 820001
  Show dependency treegraph
Reported: 2012-05-08 16:20 EDT by Vincent Danen
Modified: 2018-03-01 15:39 EST (History)
4 users (show)

See Also:
Fixed In Version: php 5.4.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-05 05:38:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Vincent Danen 2012-05-08 16:20:41 EDT
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.


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:

Comment 1 Vincent Danen 2012-05-08 16:22:43 EDT
Created php tracking bugs for this issue

Affects: fedora-17 [bug 820001]
Comment 3 Tomas Hoger 2012-05-10 12:33:12 EDT
This flaw affects PHP-CGI.  Common configurations using Apache httpd PHP module, which is also the default setting in Fedora and Red Hat Enterprise Linux, were not affected by this flaw.

Note You need to log in before you can comment on or make changes to this bug.