Live threats

All CVEs / Apache

CVE-2012-0838Apache Struts

Critical 10.0 No auth neededHigh EPSS

Priority
76
CVSS 2.0
10.0
EPSS
13.7%
probability of exploitation in 30 days · percentile 97
Auth required
No
Published
Mar 2, 2012
Updated
Jun 16, 2026
Category
Server · Cross-platform
Weakness (CWE)
CWE-20
Vector
AV:N/AC:L/Au:N/C:C/I:C/A:C

What happens

Apache Struts 2 before 2.2.3.1 evaluates a string as an OGNL expression during the handling of a conversion error, which allows remote attackers to modify run-time data values, and consequently execute arbitrary code, via invalid input to a field.

Original NVD text.

What to do

  1. Apply the vendor's security update for Struts.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.struts.xwork:xwork-core < 2.2.3.1 2.2.3.1 —
Maven org.apache.struts:struts2-core < 2.2.3.1 2.2.3.1 —

Per OSV / GitHub Advisories (GHSA-mwrx-hx6x-3hhv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachestruts≥ 2.0.0 ≤ 2.2.3

Official sources

References

Links published by the sources. Open them with care.