CVE-2012-0021: The log_cookie function in mod_log_config.c in the mod_log_config module in the Apache HTTP Server 2.2.17 through 2.2.21, when a threaded…
Noroxi assessment
Priority: Monitor (action score 19/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 30.3% (FIRST EPSS); higher than 98.2% of all records.
- Special conditions such as timing or configuration are required.
- Fixed version: apache2 (Debian:12) 2.2.22-1; httpd (Red Hat:jboss_enterprise_web_server:1::el5) 0:2.2.17-15.4.ep5.el5; httpd-devel (Red Hat:jboss_enterprise_web_server:1::el5) 0:2.2.17-15.4.ep5.el5.
Low priority for now. Upgrade to apache2 (Debian:12) 2.2.22-1; httpd (Red Hat:jboss_enterprise_web_server:1::el5) 0:2.2.17-15.4.ep5.el5; httpd-devel (Red Hat:jboss_enterprise_web_server:1::el5) 0:2.2.17-15.4.ep5.el5 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
The log_cookie function in mod_log_config.c in the mod_log_config 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.
- Published
- Jan 28, 2012
- Updated
- Jun 16, 2026
- EPSS
- 30.3% · 98th percentile
- CWE
- CWE-20
Report tools
Action score
19
Low priority for now.
- CVSS
- 10 / 40 · 2.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 9 / 30 · 30.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is Apache HTTP Server on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| apache | http server | cpe:2.3:a:apache:http_server |
Using http server? Add it to your stack and be the first to know about CVEs like this one. (Apache HTTP)
Is Apache HTTP Server on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apache http server2.2.17
- apache http server2.2.18
- apache http server2.2.19
- apache http server2.2.20
- apache http server2.2.21
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | apache2 | before 2.2.22-1 | 2.2.22-1 |
| Red Hat:jboss_enterprise_web_server:1::el5 | httpd | before 0:2.2.17-15.4.ep5.el5 | 0:2.2.17-15.4.ep5.el5 |
| Red Hat:jboss_enterprise_web_server:1::el5 | httpd-devel | before 0:2.2.17-15.4.ep5.el5 | 0:2.2.17-15.4.ep5.el5 |
| Red Hat:jboss_enterprise_web_server:1::el5 | httpd-manual | before 0:2.2.17-15.4.ep5.el5 | 0:2.2.17-15.4.ep5.el5 |
| Red Hat:jboss_enterprise_web_server:1::el5 | mod_ssl | before 1:2.2.17-15.4.ep5.el5 | 1:2.2.17-15.4.ep5.el5 |
| Red Hat:jboss_enterprise_web_server:1::el6 | httpd | before 0:2.2.17-15.4.ep5.el6 | 0:2.2.17-15.4.ep5.el6 |
| Red Hat:jboss_enterprise_web_server:1::el6 | httpd-devel | before 0:2.2.17-15.4.ep5.el6 | 0:2.2.17-15.4.ep5.el6 |
| Red Hat:jboss_enterprise_web_server:1::el6 | httpd-manual | before 0:2.2.17-15.4.ep5.el6 | 0:2.2.17-15.4.ep5.el6 |
| Red Hat:jboss_enterprise_web_server:1::el6 | httpd-tools | before 0:2.2.17-15.4.ep5.el6 | 0:2.2.17-15.4.ep5.el6 |
| Red Hat:jboss_enterprise_web_server:1::el6 | mod_ssl | before 1:2.2.17-15.4.ep5.el6 | 1:2.2.17-15.4.ep5.el6 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | apache2 | before 2.2.34-70.12.1 | 2.2.34-70.12.1 |
Same product
apache: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-42013Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)KEV99Now
- CVE-2021-41773Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49KEV99Now
- CVE-2024-38475Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.KEV96Now
Published before and after this one in the same product
- ← EarlierCVE-2007-6750Dec 27, 2011 · The Apache HTTP Server 1.x and 2.x allows remote attackers to cause a denial of service (daemon outage) via partial HTTP requests, as…41Plan
- ← EarlierCVE-2012-0031Jan 18, 2012 · scoreboard.c in the Apache HTTP Server 2.2.21 and earlier might allow local users to cause a denial of service (daemon crash during…19Monitor
- Later →CVE-2012-0053Jan 28, 2012 · 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…42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:apache2 | 2.2.22-1 · Debian:12 | Package registry (OSV) |
| red hat:httpd | 0:2.2.17-15.4.ep5.el5 · Red Hat:jboss_enterprise_web_server:1::el5 | Package registry (OSV) |
| red hat:httpd-devel | 0:2.2.17-15.4.ep5.el5 · Red Hat:jboss_enterprise_web_server:1::el5 | Package registry (OSV) |
| red hat:httpd-manual | 0:2.2.17-15.4.ep5.el5 · Red Hat:jboss_enterprise_web_server:1::el5 | Package registry (OSV) |
| red hat:httpd-tools | 0:2.2.17-15.4.ep5.el6 · Red Hat:jboss_enterprise_web_server:1::el6 | Package registry (OSV) |
| red hat:mod_ssl | 1:2.2.17-15.4.ep5.el5 · Red Hat:jboss_enterprise_web_server:1::el5 | Package registry (OSV) |
| suse:apache2 | 2.2.34-70.12.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- High
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
AV:N/AC:H/Au:N/C:N/I:N/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- httpd.apache.org/security/vulnerabilities_22.html
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- marc.info/?l=bugtraq&m=133294460209056&w=2
- marc.info/?l=bugtraq&m=133494237717847&w=2
- rhn.redhat.com/errata/RHSA-2012-0542.html
- rhn.redhat.com/errata/RHSA-2012-0543.html
- secunia.com/advisories/48551
- support.apple.com/kb/HT5501
- svn.apache.org/viewvc?view=revision&revision=1227292
- www.mandriva.com/security/advisories?name=MDVSA-2012:012
- www.mandriva.com/security/advisories?name=MDVSA-2013:150
- www.oracle.com/technetwork/topics/security/cpujul2012-392727.html
- bugzilla.redhat.com/show_bug.cgi?id=785065
- issues.apache.org/bugzilla/show_bug.cgi?id=52256
- lists.apache.org/thread.html/8d63cb8e9100f28a99429b4328e4e7cebce861d5772ac9863ba2ae6f%40%3Ccvs.httpd.apache.org%3E
- lists.apache.org/thread.html/f7f95ac1cd9895db2714fa3ebaa0b94d0c6df360f742a40951384a53%40%3Ccvs.httpd.apache.org%3E
- lists.apache.org/thread.html/r05b5357d1f6bd106f41541ee7d87aafe3f5ea4dc3e9bde5ce09baff8%40%3Ccvs.httpd.apache.org%3E
- lists.apache.org/thread.html/r1d201e3da31a2c8aa870c8314623caef7debd74a13d0f25205e26f15%40%3Ccvs.httpd.apache.org%3E
- lists.apache.org/thread.html/r57608dc51b79102f3952ae06f54d5277b649c86d6533dcd6a7d201f7%40%3Ccvs.httpd.apache.org%3E
Vendor advisories and official records. Exploit/PoC links are deliberately left out.