CVE-2011-4415: Input Validation

Published Nov 2, 2011
·
Updated

It was reported [1] that an integer overflow was found in Apache in the appregsub() function called from mod-setenvif. When a header field is mangled using SetEnvIf, the new environment variable data can be multiples of the size of the submitted header field. This would cause appregsub() to overflow the length value in buffer size calculations, leading to the subsequent allocation call of a too-small buffer. Filling this buffer with user-supplied data will lead to a buffer overflow.

Depending on the input data, this can lead to excessive allocation of server memory (resulting in killed processes due to out-of-memory conditions), invalid memory access when copying large amounts of data (which can lead to a termination of the httpd process), or possibly allowing the execution of arbitrary code.

To trigger this flaw, modsetenvif must be enabled (the default) and the attacker needs to be able to place a crafted .htaccess file on the server (which, in most cases, would require local access to the file system or some web interface that allows for writing arbitrary files to the local file system, such as for custom .htaccess files).

There is currently no upstream fix, however to work around the problem, disable modsetenvif.

[1] http://www.halfdog.net/Security/2011/ApacheModSetEnvIfIntegerOverflow/

Other sources

The appregsub 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 modsetenvif 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 aprpcalloc function call, a different vulnerability than CVE-2011-3607.

Affected Software

55 affected components
Apache HTTP Server=2.0.42
Apache HTTP Server=2.0.64
Apache HTTP Server=2.0.58
Apache HTTP Server=2.0.47
Apache HTTP Server=2.0.56
Apache HTTP Server=2.0.50
Apache HTTP Server=2.0.35
Apache HTTP Server=2.0.37
Apache HTTP Server=2.0.55
Apache HTTP Server=2.0.44
Apache HTTP Server=2.0.39
Apache HTTP Server=2.0.52
Apache HTTP Server=2.0.53
Apache HTTP Server=2.0.57
Apache HTTP Server=2.0.51
Apache HTTP Server=2.0.28-beta
Apache HTTP Server=2.0.63
Apache HTTP Server=2.0.41
Apache HTTP Server=2.0.49
Apache HTTP Server=2.0.9
Apache HTTP Server=2.0.34-beta
Apache HTTP Server=2.0.61
Apache HTTP Server=2.0.32
Apache HTTP Server=2.0.38
Apache HTTP Server=2.0.48
Apache HTTP Server=2.0.45
Apache HTTP Server=2.0.40
Apache HTTP Server=2.0.36
Apache HTTP Server=2.0.46
Apache HTTP Server=2.0.54
Apache HTTP Server=2.0.43
Apache HTTP Server=2.0.59
Apache HTTP Server=2.0.28
Apache HTTP Server=2.0
Apache HTTP Server=2.0.32-beta
Apache HTTP Server=2.0.60
Apache HTTP Server=2.2.11
Apache HTTP Server=2.2.0
Apache HTTP Server=2.2.10
Apache HTTP Server=2.2.13
Apache HTTP Server=2.2.2
Apache HTTP Server=2.2.4
Apache HTTP Server=2.2.16
Apache HTTP Server=2.2.21
Apache HTTP Server=2.2.8
Apache HTTP Server=2.2.14
Apache HTTP Server=2.2.6
Apache HTTP Server=2.2.19
Apache HTTP Server=2.2.9
Apache HTTP Server=2.2.18
Apache HTTP Server=2.2.12
Apache HTTP Server=2.2.3
Apache HTTP Server=2.2.15
Apache HTTP Server=2.2.20
Apache HTTP Server=2.2.1

Event History

Nov 2, 2011
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverity
Data Sourced
via Red Hat·09:14 PM
DescriptionSeverityAffected Software
Nov 8, 2011
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-4415?

CVE-2011-4415 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2011-4415?

To fix CVE-2011-4415, update your Apache HTTP Server to a version that has patched the integer overflow issue.

3

Which versions of Apache HTTP Server are affected by CVE-2011-4415?

CVE-2011-4415 affects several versions including 2.0.35, 2.0.37, and up to 2.2.21.

4

What type of vulnerability is CVE-2011-4415?

CVE-2011-4415 is an integer overflow vulnerability in the mod_setenvif module.

5

Is CVE-2011-4415 considered critical?

No, CVE-2011-4415 is not considered critical but it still poses a risk and should be addressed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203