CVE-2012-1592 Unrestricted Upload of File with Dangerous Type in Apache Struts2
A local code execution vulnerability in Apache Struts2 allows malicious users to upload and execute arbitrary files via malformed XSLT processing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-1592?
CVE-2012-1592 is a high-severity vulnerability in Apache Struts, published on 5 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files.
Weakness: CWE-434
Which versions are affected by CVE-2012-1592?
2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts:struts2-core Maven | From 2.0 | 2.5.22 |
org.apache.struts:struts2-core Maven | From 2.0 | 2.5.22 |
Products include Apache Struts.
How do I fix CVE-2012-1592?
Upgrade org.apache.struts:struts2-core to 2.5.22 or later.
Is CVE-2012-1592 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-1592 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-8m5q-crqq-6pmf.