Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2012-0391: Apache Struts 2 Improper Input Validation Vulnerability

100
Patch now
CRITICAL 9.8EXPLOITEDREMOTEWATCHLISTUPGRADE

CVE-2012-0391 is a critical-severity flaw (CVSS 9.8) affecting struts, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance75.6% (top 1%)
CISA exploited listYes, fix due 2022-07-21
WeaknessCWE-94
Published2012-01-08
Last modified2026-06-16
Publisher (CNA): MITRE · Vendor: apache

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

apache struts UPGRADE
Affected: < 2.2.3.1
Fixed in: 2.2.3.1
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy struts || rpm -q struts || struts --version
2. UPGRADE to 2.2.3.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade struts
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade struts
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.

Exact fixes by distribution

Maven · org.apache.struts:struts2-core · FIXED · 2.2.3.1 · vulnerable: < 2.2.3.1 · source
Set org.apache.struts:struts2-core to 2.2.3.1 or later in pom.xml or build.gradle, then rebuild and redeploy.
Maven · org.apache.struts.xwork:xwork-core · FIXED · 2.2.3.1 · vulnerable: < 2.2.3.1 · source
Set org.apache.struts.xwork:xwork-core to 2.2.3.1 or later in pom.xml or build.gradle, then rebuild and redeploy.
Fedora 46 · dupeguru · FIXED · 4.3.1^20261101git7a2c79f-1.fc46 · FEDORA-2026-fe4523382c · source
sudo dnf upgrade --advisory=FEDORA-2026-fe4523382c
Fedora ELN · openexr · FIXED · 3.4.13-3.eln159 · FEDORA-2026-827a613db5 · source
sudo dnf upgrade --advisory=FEDORA-2026-827a613db5

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2012-0391?

struts: upgrade to 2.2.3.1. Exact commands for each OS are on this page.

Is CVE-2012-0391 being exploited?

Yes. CVE-2012-0391 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2012-0391 affect?

CVE-2012-0391 affects struts. Severity is critical (CVSS 9.8). The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary J

How urgent is CVE-2012-0391?

Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist

Software pages

Apache Struts vulnerabilities · Java vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.