CVE-2012-0021: Input Validation

Published Jan 27, 2012
·
Updated

A flaw [1] was found in modlogconfig. If an administrator configured the "%{cookiename}C" log format string to be used, a remote attacker could send a specific cookie which would cause a crash. This crash would only be a denial of service if using a threaded MPM (such as event or worker). Note that Red Hat Enterprise Linux and Fedora use the prefork MPM by default.

This will be fixed upstream [2] in 2.2.22 and affects versions 2.2.17 up to and including 2.2.21.

[1] https://issues.apache.org/bugzilla/showbug.cgi?id=52256 [2] http://svn.apache.org/viewvc?view=revision&revision=1227292

Statement:

Not vulnerable. This issue did not affect the versions of httpd as shipped with Red Hat Enterprise Linux 4, 5, or 6.

Other sources

The logcookie function in modlogconfig.c in the modlogconfig module in the Apache HTTP Server 2.2.17 through 2.2.21, when a threaded MPM is used, does not properly handle a %{}C format string, which allows remote attackers to cause a denial of service (daemon crash) via a cookie that lacks both a name and a value.

Affected Software

10 affected componentsFixes available
Apache HTTP Server=2.2.17
Apache HTTP Server=2.2.18
Apache HTTP Server=2.2.19
Apache HTTP Server=2.2.20
Apache HTTP Server=2.2.21
redhat/httpd<2.2.22
2.2.22
debian/apache2<2.2.22-1
2.2.22-1
debian/apache2<2.2.22-1
2.2.22-1
debian/apache2<2.2.22-1
2.2.22-1
debian/apache2
2.4.68-1~deb12u12.4.71-1~deb12u12.4.68-1~deb13u12.4.71-1~deb13u12.4.71-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/httpd to a version that resolves this vulnerability.

    Fixed in 2.2.22
  2. Upgrade

    Upgrade debian/apache2 to a version that resolves this vulnerability.

    Fixed in 2.2.22-1
  3. Upgrade

    Upgrade debian/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.68-1~deb12u1Fixed in 2.4.71-1~deb12u1Fixed in 2.4.68-1~deb13u1Fixed in 2.4.71-1~deb13u1Fixed in 2.4.71-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.2.22

Event History

Jan 27, 2012
Data Sourced
06:05 AM
DescriptionSeverityAffected Software
Jan 28, 2012
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description
Data Sourced
04:05 AM
RemedyWeakness
Data Sourced
via OSV·04:05 AM
DescriptionAffected Software
Data Sourced
via NVD·04:05 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 24, 2021
Data Sourced
via Red Hat·01:17 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2012-0021?

CVE-2012-0021 poses a denial of service risk primarily affecting installations using a threaded multi-processing module.

2

How do I fix CVE-2012-0021?

To mitigate CVE-2012-0021, upgrade to Apache HTTP Server version 2.2.22 or later.

3

Which versions of Apache HTTP Server are affected by CVE-2012-0021?

CVE-2012-0021 affects Apache HTTP Server versions 2.2.17 through 2.2.21.

4

Is CVE-2012-0021 exploitable remotely?

Yes, CVE-2012-0021 can be exploited remotely by sending specially crafted cookies.

5

What impact does CVE-2012-0021 have on system availability?

CVE-2012-0021 can lead to a crash of the web server, resulting in temporary unavailability.

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