Skip to content
OpenAdvisories
Unscored Public exploit CVE-2012-0053 EUVD-2012-0092GHSA-x2wg-fp56-xx79

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 …

Published Jan 28, 2012 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache2 2.2.22-1 —
Debian 13 apache2 2.2.22-1 —
Debian 12 apache2 2.2.22-1 —
Debian 6.0 apache2 2.2.16-6+squeeze6 DSA-2405-1
Debian 5.0 apache2 2.2.9-10+lenny12 DSA-2405-1
ReleasePackageFixed inAdvisory
RHEL 6 httpd +3 2.2.15-15.el6_2.1 RHSA-2012:0128
RHEL 6 mod_ssl 1:2.2.15-15.el6_2.1 RHSA-2012:0128
RHEL 5 httpd +2 2.2.3-63.el5_8.1 RHSA-2012:0323
RHEL 5 mod_ssl 1:2.2.3-63.el5_8.1 RHSA-2012:0323
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 1 httpd +2 2.2.17-15.4.ep5.el5 RHSA-2012:0542
Red Hat JBoss Web Server 1 httpd-tools 2.2.17-15.4.ep5.el6 RHSA-2012:0542
Red Hat JBoss Web Server 1 mod_ssl 1:2.2.17-15.4.ep5.el5 RHSA-2012:0542
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2 2.4.23-4.1 openSUSE-SU-2024:10268-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References