HighGHSA-8m5q-crqq-6pmfCVE-2012-1592
Unrestricted Upload of File with Dangerous Type in Apache Struts2
Published 23 Apr 2022 · Updated 8 Nov 2023
Is your project on an affected org.apache.struts:struts2-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=2.0 <2.5.22
- Fixed in
- 2.5.22
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.5.22 -DforceVersion=trueDetails
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. A patch exists as of version 2.5.22.
Is GHSA-8m5q-crqq-6pmf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.struts:struts2-core, and gives you the command that fixes it.
More advisories for org.apache.struts:struts2-core
- HighCVE-2025-68493Apache Struts 2 is Missing XML Validation · 11 Jan 2026
- HighCVE-2025-66675Apache Struts has a Denial of Service vulnerability · 10 Dec 2025
- HighCVE-2025-64775Apache Struts is Vulnerable to DoS via File Leak · 1 Dec 2025
- CriticalCVE-2024-53677Apache Struts file upload logic is flawed · 11 Dec 2024
- CriticalCVE-2023-50164Apache Struts vulnerable to path traversal · 7 Dec 2023
- HighCVE-2023-41835Apache Struts Improper Control of Dynamically-Managed Code Resources vulnerability · 5 Dec 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2012-1592
- Linkaccess.redhat.com/security/cve/cve-2012-1592
- Linkbugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1592
- Packagegithub.com/apache/struts
- Linkgithub.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L39-L76
- Linkissues.apache.org/jira/browse/WW-5055
- Linklists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2%40%3Cissues.struts.apache.org%3E
- Linklists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2@%3Cissues.struts.apache.org%3E
- Linklists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc%40%3Cissues.struts.apache.org%3E
- Linklists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc@%3Cissues.struts.apache.org%3E
- Linklists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b%40%3Cissues.struts.apache.org%3E
- Linklists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b@%3Cissues.struts.apache.org%3E
- Linkseclists.org/bugtraq/2012/Mar/110
- Linksecurity-tracker.debian.org/tracker/CVE-2012-1592
- Linkstruts.apache.org/security/#internal-security-mechanism
- Linkwww.openwall.com/lists/oss-security/2012/03/28/12
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.