← Vulnerability feed

Vulnerability record · CVE-2012-0053 · published 28 January 2012

CVE-2012-0053: Apache HTTP Server 400 error page leaks HTTPOnly cookies

Apache · Http Server

Apache HTTP Server 2.2.x through 2.2.21 fails to restrict header information when building Bad Request (400) error documents. A long or malformed header combined with a crafted web script causes the server to echo HTTPOnly cookie values into the error response. This defeats the HTTPOnly protection meant to keep session cookies out of reach of scripts.

4.3 CVSS 2.0 Medium EPSS 82% · top 0.4%
4.3CVSS 2.0 base score
82%EPSS exploitation probability, 30 days
NoNot in CISA KEV
11Affected product versions listed by NVD
90References
16 Jun 2026Last modified by NVD

Description

protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error documents, which allows remote attackers to obtain the values of HTTPOnly cookies via vectors involving a (1) long or (2) malformed header in conjunction with crafted web script.

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

Automated analysis

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

high priorityAlthough CVSS 2.0 is only 4.3 (MEDIUM), the EPSS score is 0.82198 at the 99.6th percentile and the flaw directly exposes HTTPOnly session cookies, making real-world exploitation likely and impactful.

What it is

Apache HTTP Server 2.2.x through 2.2.21 fails to restrict header information when building Bad Request (400) error documents. A long or malformed header combined with a crafted web script causes the server to echo HTTPOnly cookie values into the error response. This defeats the HTTPOnly protection meant to keep session cookies out of reach of scripts.

Impact

An attacker can read HTTPOnly cookie values, including session identifiers, enabling session hijacking or account takeover. The leak is limited to confidentiality; no integrity or availability impact is described.

Attack surface

Reachable remotely over the network (AV:N) with no authentication (Au:N), but requires a crafted web script and a long or malformed header, giving medium attack complexity (AC:M). No user interaction is required by the vector.

Exploitation

Not listed in CISA KEV and no ransomware use documented, but EPSS is very high (0.82198, 99.6th percentile), indicating strong predicted exploitation activity. References include a vendor patch and multiple third-party advisories.

What to do

  • Upgrade Apache HTTP Server to a version after 2.2.21 that includes the fix (see Apache 2.2 vulnerabilities page and revision 1235454).
  • Apply vendor errata for affected distributions (Red Hat RHSA-2012-0128/0542/0543, Debian DSA-2405, openSUSE advisories).
  • If immediate upgrade is not possible, review exposure of HTTPOnly session cookies and consider shortening session lifetimes or rotating session identifiers.
  • Monitor for 400 responses containing cookie values and treat such responses as a sign of attempted exploitation.

Detection

  • Search web server logs for 400 Bad Request responses with unusually long or malformed headers.
  • Inspect 400 error response bodies for echoed Cookie or Set-Cookie values.
  • Alert on requests combining crafted script parameters with oversized or malformed headers.
  • Correlate 400 error spikes with subsequent session reuse from different client addresses.

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

Affected products

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

References

LinkTags
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041 Broken Link
http://httpd.apache.org/security/vulnerabilities_22.html Vendor Advisory
http://kb.juniper.net/JSA10585 Third Party Advisory
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html Broken LinkMailing List
http://lists.opensuse.org/opensuse-security-announce/2012-02/msg00026.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00002.html Mailing ListThird Party Advisory
http://marc.info/?l=bugtraq&m=133294460209056&w=2 Issue TrackingMailing ListThird Party Advisory
http://marc.info/?l=bugtraq&m=133494237717847&w=2 Issue TrackingMailing ListThird Party Advisory
http://marc.info/?l=bugtraq&m=133951357207000&w=2 Issue TrackingMailing ListThird Party Advisory
http://marc.info/?l=bugtraq&m=136441204617335&w=2 Issue TrackingMailing ListThird Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0128.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0542.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0543.html Third Party Advisory
http://secunia.com/advisories/48551 Not Applicable
http://support.apple.com/kb/HT5501 Third Party Advisory
http://svn.apache.org/viewvc?view=revision&revision=1235454 PatchVendor Advisory
http://www.debian.org/security/2012/dsa-2405 Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2012:012 Broken Link
http://www.mandriva.com/security/advisories?name=MDVSA-2013:150 Broken Link
http://www.oracle.com/technetwork/topics/security/cpujan2015-1972971.html Third Party Advisory
http://www.oracle.com/technetwork/topics/security/cpujul2012-392727.html Third Party Advisory
http://www.securityfocus.com/bid/51706 Third Party AdvisoryVDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=785069 Issue TrackingThird Party Advisory
https://lists.apache.org/thread.html/54a42d4b01968df1117cea77fc53d6beb931c0e05936ad02af93e9ac%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/5df9bfb86a3b054bb985a45ff9250b0332c9ecc181eec232489e7f79%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/8d63cb8e9100f28a99429b4328e4e7cebce861d5772ac9863ba2ae6f%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/f7f95ac1cd9895db2714fa3ebaa0b94d0c6df360f742a40951384a53%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/r0276683d8e1e07153fc8642618830ac0ade85b9ae0dc7b07f63bb8fc%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r05b5357d1f6bd106f41541ee7d87aafe3f5ea4dc3e9bde5ce09baff8%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r1d201e3da31a2c8aa870c8314623caef7debd74a13d0f25205e26f15%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r2cb985de917e7da0848c440535f65a247754db8b2154a10089e4247b%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r476d175be0aaf4a17680ef98c5153b4d336eaef76fb2224cc94c463a%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r57608dc51b79102f3952ae06f54d5277b649c86d6533dcd6a7d201f7%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r5f9c22f9c28adbd9f00556059edc7b03a5d5bb71d4bb80257c0d34e4%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r75cbe9ea3e2114e4271bbeca7aff96117b50c1b6eb7c4772b0337c1f%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r8828e649175df56f1f9e3919938ac7826128525426e2748f0ab62feb%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r9b4b963760a3cb5a4a70c902f325c6c0337fe51d5b8570416f8f8729%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r9e8622254184645bc963a1d47c5d47f6d5a36d6f080d8d2c43b2b142%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r9ea3538f229874c80a10af473856a81fbf5f694cd7f471cc679ba70b%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org

Track CVE-2012-0053 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.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

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