WaratekVRT Sign in

CVE-2018-1327 Apache Struts

Affected softwareApache Struts
Severity7.5 High CVSS 3.0 2 scores
Fixed in2.5.16
WeaknessXML injection (CWE-91)
Published27 Mar 2018
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 8 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 8.6% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-91: XML Injection.

How to mitigate CVE-2018-1327

Upgrade Apache Struts to 2.5.16 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.5 HIGH v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 7.5 HIGH CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H NVD Primary published
CVSS 2.0 5.0 none AV:N/AC:L/Au:N/C:N/I:N/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.struts:struts2-rest-plugin 2.1.1 2.5.16 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache struts generic ≥ 2.1.1 and ≤ 2.5.14.1
osv org.apache.struts struts2-rest-plugin generic ≥ 2.1.1 and < 2.5.16

References

URLTags
https://github.com/apache/struts/commit/4260bee634cb606be6071bce2383fddb510608aa WEB
https://github.com/apache/struts/commit/67ecf3a21608e20449bcb7895b22204b400fecd4 WEB
https://github.com/apache/struts/commit/9260720568cee9e868d2899228eceed0c3359323 WEB
https://cwiki.apache.org/confluence/display/WW/S2-056 WEB
https://github.com/apache/struts PACKAGE
https://lists.apache.org/thread.html/r02c2d634fa74209d941c90f9a4cd36a6f12366ca65f9b90446ff2de3@%3Cissues.struts.apache.org%3E WEB
https://lists.apache.org/thread.html/rf482c101a88445d73cc2e89dbf7f16ae00a4aa79a544a1e72b2326db@%3Cissues.struts.apache.org%3E WEB
https://security.netapp.com/advisory/ntap-20180330-0001 WEB
https://web.archive.org/web/20200227124859/http://www.securityfocus.com/bid/103516 WEB
https://web.archive.org/web/20200923124543/http://www.securitytracker.com/id/1040575 WEB

Timeline

Published2018-03-27By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.