VDB
Sign up
HIGH8.1

GHSA-gg9m-fj3v-r58c

REST Plugin in Apache Struts uses an XStreamHandler with an instance of XStream for deserialization without any type filtering

Quick fix

GHSA-gg9m-fj3v-r58c — org.apache.struts:struts2-rest-plugin: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.3.34</version> for org.apache.struts:struts2-rest-plugin

Details

The REST Plugin in Apache Struts 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.struts:struts2-rest-plugin
Introduced in: 2.1.1Fixed in: 2.3.34
Fix# pom.xml: bump <version>2.3.34</version> for org.apache.struts:struts2-rest-plugin
Maven/org.apache.struts:struts2-rest-plugin
Introduced in: 2.5.0Fixed in: 2.5.13
Fix# pom.xml: bump <version>2.5.13</version> for org.apache.struts:struts2-rest-plugin

References