CWE
119
Advisory Published
CVE Published
Updated

CVE-2012-2329: Buffer Overflow

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 SoftwareAffected VersionHow to fix
redhat/php<5.4.3
5.4.3
PHP=5.4.0
PHP=5.4.1
PHP=5.4.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2012-2329?

    CVE-2012-2329 has a medium severity level due to the potential for a buffer overflow in the apache_request_headers() function.

  • How do I fix CVE-2012-2329?

    To fix CVE-2012-2329, upgrade your PHP installation to version 5.4.3 or later.

  • Which PHP versions are affected by CVE-2012-2329?

    CVE-2012-2329 affects PHP versions 5.4.0 through 5.4.2.

  • Can CVE-2012-2329 lead to code execution?

    Yes, CVE-2012-2329 can potentially lead to remote code execution due to the buffer overflow.

  • Is CVE-2012-2329 specific to any operating system?

    CVE-2012-2329 is not specific to any operating system but affects installations of PHP across various environments that use vulnerable versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203