CVE-2013-2115: Code injection in Apache Struts
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99615%
CWE
Published
5/13/2022
Updated
12/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.struts:struts2-core | maven | >= 2.0.0, < 2.3.14.2 | 2.3.14.2 |
org.apache.struts.xwork:xwork-core | maven | >= 2.0.0, < 2.3.14.2 | 2.3.14.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: 1) The mutable allowStaticMethodAccess flag in SecurityMemberAccess allowed enabling dangerous OGNL features (patched by making it final and removing the setter). 2) The URL parameter handling in DefaultUrlHelper performed OGNL evaluation through translateAndEncode/translateAndDecode methods before encoding (patched by removing OGNL evaluation from parameter processing). These functions directly enabled the double-evaluation of malicious OGNL expressions in URL parameters when using includeParams='get' or 'all' in Struts tags.