Description
ParametersInterceptor in Apache Struts before 2.3.20 does not properly restrict access to the getClass method, which allows remote attackers to "manipulate" the ClassLoader and execute arbitrary code via a crafted request. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-0094.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache Struts ClassLoader Manipulation Remote Code Execution
exploit/multi/http/struts_code_exec_classloader
Exploit-DB 2
- Apache Struts - ClassLoader Manipulation Remote Code Execution (Metasploit) EDB-33142 · remote · May 2, 2014 · verified
- Apache Struts < 1.3.10 / < 2.3.16.2 - ClassLoader Manipulation Remote Code Execution (Metasploit) EDB-41690 · remote · Mar 6, 2014 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.struts:struts2-core | < 2.3.20 | 2.3.20 | GHSA-prjv-jj26-wf8h |
Advisories 1
- WID-SEC-2023-2068 Oracle MySQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 15, 2023
References
- http://packetstormsecurity.com/files/127215/VMware-Security-Advisory-2014-0007.html
- https://cwiki.apache.org/confluence/display/WW/S2-021
- 59178 third-party-advisory
- http://www.vmware.com/security/advisories/VMSA-2014-0007.html
- 20140426 [ANN] Struts 2.3.16.2 GA release available - security fix mailing-list
- 59500 third-party-advisory
- http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html
- 67064 vdb-entry
- JVN#19294237 third-party-advisory
- JVNDB-2014-000045 third-party-advisory
- http://www-01.ibm.com/support/docview.wss?uid=swg21676706
- https://bugzilla.redhat.com/show_bug.cgi?id=1091939
- 20140625 NEW VMSA-2014-0007 - VMware product updates address security vulnerabilities in Apache Struts library mailing-list
- RHSA-2019:0910 vendor-advisory