Public Date:
785069: CVE-2012-0053 httpd: cookie exposure due to error responses

The MITRE CVE dictionary describes this issue as:

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.

Find out more about CVE-2012-0053 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue affects httpd packages as shipped with Red Hat Enterprise Linux 3 and 4, which are now in the Extended Life Phase of their life cycle. Therefore this issue is not planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle:

CVSS v2 metrics

Base Score 4.3
Base Metrics AV:N/AC:M/Au:N/C:P/I:N/A:N
Access Vector Network
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact None
Availability Impact None

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux 5 (httpd) RHSA-2012:0323 2012-02-21
Red Hat Enterprise Linux 6 (httpd) RHSA-2012:0128 2012-02-13
Red Hat JBoss Enterprise Web Server 1 for RHEL 6 Server (httpd) RHSA-2012:0542 2012-05-07
Red Hat JBoss Enterprise Web Server 1 for RHEL 5 Server (httpd) RHSA-2012:0542 2012-05-07
Red Hat JBoss Web Server 1.0 RHSA-2012:0543 2012-05-07

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 4 httpd Will not fix
Red Hat Directory Server 8 httpd Will not fix
Red Hat Certificate System 7.3 for 4AS httpd Will not fix
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.


As noted in the original reporter's advisory (see comment #5), this issue can be mitigated by using a custom ErrorDocument setting, such as:

  ErrorDocument 400 "Bad Request"

It should be noted that ErrorDocument setting using path or external URL does not mitigate this issue.

It should also be noted that this is not an issue by itself. This can only be exploited via some other cross-site scripting (XSS) flaw found in a web application running on the server and may allow injected JavaScript to gain access to HttpOnly cookies, if the application uses this protection for its cookies.

Last Modified

CVE description copyright © 2017, The MITRE Corporation