All vulnerabilities

Servers and applications

CVE-2011-4415

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, does not restrict the size of values of environment variables, which allows local users to cause a denial of service (memory consumption or NULL pointer dereference) via a .htaccess file with a crafted SetEnvIf directive, in conjunction with a…

Severity
Low 1.2
Published
8 Nov 2011
Last changed
16 Jun 2026
Added to UpHeron
17 Oct 2026
Exploit chance
3% in the next 30 daysHigher than 87% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper input validation (CWE-20)
Attack
Needs local access · Only under certain conditions · No login needed
Attacker can
Slow it down
CVSS vector
AV:L/AC:H/Au:N/C:N/I:N/A:P
Sources
NVD

Description

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, does not restrict the size of values of environment variables, which allows local users to cause a denial of service (memory consumption or NULL pointer dereference) via a .htaccess file with a crafted SetEnvIf directive, in conjunction with a crafted HTTP request header, related to (1) the "len +=" statement and (2) the apr_pcalloc function call, a different vulnerability than CVE-2011-3607.

From NVD.

Affected software

SoftwareAffected versions
Apache HTTP ServerServers and applications · cpe:a:apache:http_server
  • Version 2.2.21
  • Version 2.2.20
  • Version 2.2.19
  • Version 2.2.18
All 55 release lines
  • Version 2.0
  • Version 2.0.9
  • Version 2.0.28-beta
  • Version 2.0.28
  • Version 2.0.32-beta
  • Version 2.0.32
  • Version 2.0.34-beta
  • Version 2.0.35
  • Version 2.0.36
  • Version 2.0.37
  • Version 2.0.38
  • Version 2.0.39
  • Version 2.0.40
  • Version 2.0.41
  • Version 2.0.42
  • Version 2.0.43
  • Version 2.0.44
  • Version 2.0.45
  • Version 2.0.46
  • Version 2.0.47
  • Version 2.0.48
  • Version 2.0.49
  • Version 2.0.50
  • Version 2.0.51
  • Version 2.0.52
  • Version 2.0.53
  • Version 2.0.54
  • Version 2.0.55
  • Version 2.0.56
  • Version 2.0.57
  • Version 2.0.58
  • Version 2.0.59
  • Version 2.0.60
  • Version 2.0.61
  • Version 2.0.63
  • Version 2.0.64
  • Version 2.2.0
  • Version 2.2.1
  • Version 2.2.2
  • Version 2.2.3
  • Version 2.2.4
  • Version 2.2.6
  • Version 2.2.8
  • Version 2.2.9
  • Version 2.2.10
  • Version 2.2.11
  • Version 2.2.12
  • Version 2.2.13
  • Version 2.2.14
  • Version 2.2.15
  • Version 2.2.16
  • Version 2.2.18
  • Version 2.2.19
  • Version 2.2.20
  • Version 2.2.21

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2011-4415
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2011-4415