CVE-2012-0392
MediumPublic exploitApache Struts's CookieInterceptor component does not use the parameter-name whitelist
Published May 4, 2022 · Updated Dec 5, 2024 · Also known as GHSA-2ppp-xj34-vvf7
Key Facts
Patch immediately- CVE-2012-0392 is a medium-severity vulnerability (CVSS 6.8 v2) affecting Struts (Apache), org.apache.struts:struts2-core (maven), org.apache.struts.xwork:xwork-core (maven).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 98% probability of exploitation in the next 30 days.
- Fixed versions are available, including Struts 2.3.1, org.apache.struts:struts2-core 2.2.3.1, org.apache.struts.xwork:xwork-core 2.2.3.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v2
6.8
AV:N/AC:M/Au:N/C:P/I:P/A:P
EPSS (30-day exploit likelihood)
98%
Higher than 99.9% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2012-0392 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| StrutsApache | See advisory | 2.3.1 |
| org.apache.struts:struts2-coremaven | See advisory | 2.2.3.1 |
| org.apache.struts.xwork:xwork-coremaven | See advisory | 2.2.3.1 |
Patched Releases
Struts
2.3.1
org.apache.struts:struts2-core
2.2.3.1
org.apache.struts.xwork:xwork-core
2.2.3.1
Timeline
Publicly disclosed
May 4, 2022
Last updated
Dec 5, 2024
References
- advisory47393
- advisoryGHSA advisory
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2012-0392
- advisoryhttps://web.archive.org/web/20140723153720/http://secunia.com/advisories/47393/
- exploitExploitDB-18329
FAQ
Common Questions.
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.
Affected: Struts (Apache); org.apache.struts:struts2-core (maven); org.apache.struts.xwork:xwork-core (maven). The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Struts 2.3.1, org.apache.struts:struts2-core 2.2.3.1, org.apache.struts.xwork:xwork-core 2.2.3.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2012-0392 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo