Skip to content
OpenAdvisories
Unscored Public exploit CVE-2011-3607 EUVD-2011-3566GHSA-chqj-ghv5-hm5m

Integer overflow in the ap_pregsub function in server/util.c in the Apache HTTP Server 2.0.x through 2.0.64 and 2.2.x through 2.2.21, when …

Published Nov 8, 2011 · Updated Aug 6, 2024 · Assigned by redhat

Description

Integer overflow in the ap_pregsub function in server/util.c in the Apache HTTP Server 2.0.x through 2.0.64 and 2.2.x through 2.2.21, when the mod_setenvif module is enabled, allows local users to gain privileges via a .htaccess file with a crafted SetEnvIf directive, in conjunction with a crafted HTTP request header, leading to a heap-based buffer overflow.

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.21-4 —
Debian 13 apache2 2.2.21-4 —
Debian 12 apache2 2.2.21-4 —
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