HIGH8.8
GHSA-8m5q-crqq-6pmf
Unrestricted Upload of File with Dangerous Type in Apache Struts2
Quick fix
GHSA-8m5q-crqq-6pmf — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.5.22</version> for org.apache.struts:struts2-coreDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.apache.struts:struts2-core
Introduced in:
2.0Fixed in: 2.5.22Fix
# pom.xml: bump <version>2.5.22</version> for org.apache.struts:struts2-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2012-1592[ADVISORY]
- https://access.redhat.com/security/cve/cve-2012-1592[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1592[WEB]
- https://github.com/apache/struts[PACKAGE]
- https://github.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L39-L76[WEB]
- https://issues.apache.org/jira/browse/WW-5055[WEB]
- https://lists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2%40%3Cissues.struts.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2@%3Cissues.struts.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc%40%3Cissues.struts.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc@%3Cissues.struts.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b%40%3Cissues.struts.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b@%3Cissues.struts.apache.org%3E[WEB]
- https://seclists.org/bugtraq/2012/Mar/110[WEB]
- https://security-tracker.debian.org/tracker/CVE-2012-1592[WEB]
- https://struts.apache.org/security/#internal-security-mechanism[WEB]
- https://www.openwall.com/lists/oss-security/2012/03/28/12[WEB]