Skip to content
Vulnerability Intelligence

CVE-2012-0392

MediumPublic exploit

Apache 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
ProductAffected versionsFixed in
StrutsApacheSee advisory2.3.1
org.apache.struts:struts2-coremavenSee advisory2.2.3.1
org.apache.struts.xwork:xwork-coremavenSee advisory2.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

  1. Publicly disclosed

    May 4, 2022

  2. Last updated

    Dec 5, 2024

References

10 more references in the full CVE brief

FAQ

Common Questions.

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