🛡️ CVE-2012-0838 — struts2-core
Description
Apache Struts Code injection due to conversion error
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.
Weakness class
CVE-2012-0838 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.
Affected software
CVE-2012-0838 is recorded against 2 packages.
- org.apache.struts.xwork:xwork-core (fixed in 2.2.3.1)
- org.apache.struts:struts2-core (fixed in 2.2.3.1)
Timeline and source
Published on 14 May 2022 and last revised on 5 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
issues.apache.org (Web)
jvn.jp (Web)
jvndb.jvn.jp (Web)
struts.apache.org (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| org.apache.struts:struts2-core | — | 2.2.3.1 |
| org.apache.struts.xwork:xwork-core | — | 2.2.3.1 |
References
Similar Threats
- Unknown CLSA-2025-1754006617
- Unknown CLSA-2026-1782781173
- Unknown CVE-2008-6505
- Unknown CVE-2008-6682
- Low CVE-2011-1772
More CVE 2012 advisories
Browse all of CVE 2012 in the advisory index.
Site Security Check
Is struts2-core part of your stack?
CVE-2012-0838 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.