← Vulnerability feed

Vulnerability record · CVE-2012-2329 · published 11 May 2012

CVE-2012-2329: PHP CGI apache_request_headers buffer overflow

Php · Php

PHP 5.4.x before 5.4.3 contains a buffer overflow in the apache_request_headers function in sapi/cgi/cgi_main.c. A remote attacker can trigger it with a long string in an HTTP request header, crashing the application. The flaw is a memory buffer overflow (CWE-119) with only partial impact per the CVSS 2.0 vector.

5.0 CVSS 2.0 Medium EPSS 62% · top 0.8% CWE-119 · Memory buffer overflow
5.0CVSS 2.0 base score
62%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
16References
16 Jun 2026Last modified by NVD

Description

Buffer overflow in the apache_request_headers function in sapi/cgi/cgi_main.c in PHP 5.4.x before 5.4.3 allows remote attackers to cause a denial of service (application crash) via a long string in the header of an HTTP request.

AV:N/AC:L/Au:N/C:N/I:N/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

medium priorityRemote, unauthenticated and easy to trigger, but the documented impact is limited to denial of service and the affected PHP 5.4.x line is long obsolete.

What it is

PHP 5.4.x before 5.4.3 contains a buffer overflow in the apache_request_headers function in sapi/cgi/cgi_main.c. A remote attacker can trigger it with a long string in an HTTP request header, crashing the application. The flaw is a memory buffer overflow (CWE-119) with only partial impact per the CVSS 2.0 vector.

Impact

The stated impact is denial of service via application crash; the CVSS vector rates confidentiality and integrity as none and availability as partial. No code execution or data exposure is claimed in the record.

Attack surface

Reachable remotely over the network through an HTTP request header, with no authentication required (AV:N/AC:L/Au:N). No user interaction is indicated by the vector or description.

Exploitation

Not listed in CISA KEV and no ransomware association is recorded, but EPSS is high at 0.623 (99th percentile), suggesting elevated likelihood of exploitation activity. No reference is tagged as an exploit.

What to do

  • Upgrade PHP to 5.4.3 or later, which the vendor changelog identifies as the fix.
  • If immediate upgrade is not possible, restrict or filter oversized HTTP request headers at the reverse proxy or web server.
  • Avoid running PHP in CGI mode where the vulnerable apache_request_headers path is exposed, or isolate such deployments.
  • Track vendor and distribution advisories for backported patches to older PHP branches.

Detection

  • Monitor web and PHP logs for crashes or abnormal process termination correlated with unusually long HTTP request headers.
  • Alert on request headers exceeding normal length thresholds at the proxy or WAF layer.
  • Watch for repeated malformed or oversized header requests from single sources targeting PHP CGI endpoints.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2012-2329 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed10.0CVE-2012-2688Php vulnerabilityUnspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown im…EPSS 10%10.0CVE-2012-2376Php memory buffer overflow vulnerabilityBuffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted …EPSS 20%10.0CVE-2011-3268Php memory buffer overflow vulnerabilityBuffer overflow in the crypt function in PHP before 5.3.7 allows context-dependent attackers to have an unspecified impact via a long salt argument, …EPSS 5.7%10.0CVE-2009-4143Php vulnerabilityPHP before 5.2.12 does not properly handle session data, which has unspecified impact and attack vectors related to (1) interrupt corruption of the S…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2012-2329), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.