Apache Struts REST Plugin can potentially allow a DoS attack
Published 16 Oct 2018 · Updated 20 Feb 2024
Is your project on an affected org.apache.struts:struts2-rest-plugin?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=2.1.1 <2.5.16
- Fixed in
- 2.5.16
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-rest-plugin -DdepVersion=2.5.16 -DforceVersion=trueDetails
The Apache Struts REST Plugin is using XStream library which is vulnerable and allow perform a DoS attack when using a malicious request with specially crafted XML payload. Upgrade to the Apache Struts version 2.5.16 and switch to an optional Jackson XML handler as described here http://struts.apache.org/plugins/rest/#custom-contenttypehandlers. Another option is to implement a custom XML handler based on the Jackson XML handler from the Apache Struts 2.5.16.
Is GHSA-38cr-2ph5-frr9 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-rest-plugin, and gives you the command that fixes it.
More advisories for org.apache.struts:struts2-rest-plugin
- HighCVE-2013-4316Code injection in Apache Struts · 17 May 2022
- CriticalCVE-2016-4438Arbitrary code execution in Apache Struts 2 · 14 May 2022
- HighCVE-2017-9805REST Plugin in Apache Struts uses an XStreamHandler with an instance of XStream for deserialization without any type filtering · 16 Oct 2018
- HighCVE-2017-9793The REST Plugin in Apache Struts is using an outdated XStream library · 16 Oct 2018
- MediumCVE-2017-15707Moderate severity vulnerability that affects org.apache.struts:struts2-rest-plugin · 16 Oct 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-1327
- Linkgithub.com/apache/struts/commit/4260bee634cb606be6071bce2383fddb510608aa
- Linkgithub.com/apache/struts/commit/67ecf3a21608e20449bcb7895b22204b400fecd4
- Linkgithub.com/apache/struts/commit/9260720568cee9e868d2899228eceed0c3359323
- Linkcwiki.apache.org/confluence/display/WW/S2-056
- Packagegithub.com/apache/struts
- Linklists.apache.org/thread.html/r02c2d634fa74209d941c90f9a4cd36a6f12366ca65f9b90446ff2de3@%3Cissues.struts.apache.org%3E
- Linklists.apache.org/thread.html/rf482c101a88445d73cc2e89dbf7f16ae00a4aa79a544a1e72b2326db@%3Cissues.struts.apache.org%3E
- Linksecurity.netapp.com/advisory/ntap-20180330-0001
- Linkweb.archive.org/web/20200227124859/http://www.securityfocus.com/bid/103516
- Linkweb.archive.org/web/20200923124543/http://www.securitytracker.com/id/1040575
- Linkwww.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.