CVE-2012-0838Apache Struts
Critical 10.0 No auth neededHigh EPSS
Follow: this CVE · Apache · Apache Struts We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Struts.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| apache | struts | ≥ 2.0.0 ≤ 2.2.3 |
Official sources
References
Links published by the sources. Open them with care.
- jvn.jp Third Party Advisory VDB Entry
- jvndb.jvn.jp Third Party Advisory VDB Entry
- struts.apache.org Vendor Advisory
- issues.apache.org Issue Tracking Vendor Advisory