cve.bz

CVE-2012-0053

no score yetExploitEPSS 82%Fix available

No CVSS score yet. EPSS 82% estimated probability of exploitation activity in the next 30 days.

On this page
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.
EPSS
82% (unchanged from 82% a week ago; 82% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2012-0053 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2012-0053?via=ask-ai-copy and https://cve.bz/cve/CVE-2012-0053?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2012-0053 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:http_serverfrom 2.0.0 before 2.0.65
apache:http_serverfrom 2.2.0 before 2.2.22
debian:debian_linux5.0
debian:debian_linux6.0
debian:debian_linux7.0
opensuse:opensuse11.4
suse:linux_enterprise_server10:sp4
suse:linux_enterprise_software_development_kit10:sp4
redhat:storage2.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_eus6.2
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_workstation6.0
redhat:jboss_enterprise_web_server1.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian5.0apache22.2.9-10+lenny12DSA-2405-1
Debian6.0apache22.2.16-6+squeeze6DSA-2405-1
Debian12, 13, 14apache22.2.22-1DEBIAN-CVE-2012-0053
Red Hatenterprise_linux:5::clienthttpd, httpd-debuginfo0:2.2.3-63.el5_8.1RHSA-2012:0323
Red Hatenterprise_linux:5::client, enterprise_linux:5::servermod_ssl1:2.2.3-63.el5_8.1RHSA-2012:0323
Red Hatenterprise_linux:5::client_workstation, enterprise_linux:5::serverhttpd, httpd-devel, httpd-manual and 1 more0:2.2.3-63.el5_8.1RHSA-2012:0323
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 morehttpd, httpd-devel, httpd-tools and 2 more0:2.2.15-15.el6_2.1RHSA-2012:0128
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moremod_ssl1:2.2.15-15.el6_2.1RHSA-2012:0128
Red Hatjboss_enterprise_web_server:1::el5httpd, httpd-devel, httpd-manual0:2.2.17-15.4.ep5.el5RHSA-2012:0542
Red Hatjboss_enterprise_web_server:1::el5mod_ssl1:2.2.17-15.4.ep5.el5RHSA-2012:0542
Red Hatjboss_enterprise_web_server:1::el6httpd, httpd-devel, httpd-tools and 1 more0:2.2.17-15.4.ep5.el6RHSA-2012:0542
Red Hatjboss_enterprise_web_server:1::el6mod_ssl1:2.2.17-15.4.ep5.el6RHSA-2012:0542
openSUSETumbleweedapache22.4.23-4.1openSUSE-SU-2024:10268-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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: https://access.redhat.com/support/policy/updates/errata/

Red Hat's mitigation

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"

http://httpd.apache.org/docs/2.2/mod/core.html#errordocument

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5httpd-0:2.2.3-63.el5_8.1Fixed 2012-02-21RHSA-2012:0323
Red Hat Enterprise Linux 6httpd-0:2.2.15-15.el6_2.1Fixed 2012-02-13RHSA-2012:0128
Red Hat JBoss Enterprise Web Server 1 for RHEL 5httpd-0:2.2.17-15.4.ep5.el5Fixed 2012-05-07RHSA-2012:0542
Red Hat JBoss Enterprise Web Server 1 for RHEL 6httpd-0:2.2.17-15.4.ep5.el6Fixed 2012-05-07RHSA-2012:0542
Red Hat JBoss Web Server 1.0Fixed 2012-05-07RHSA-2012:0543
Red Hat Directory Server 8httpdWill not fix
Red Hat Enterprise Linux 4httpdWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2012-0053.

Public exploits

References

Check your stackJSON