Apache Struts REST plugin XStream deserialization RCE (S2-052)
The REST plugin deserializes an XML request body with a default XStream instance that has no type allowlist, so a crafted gadget-chain document instantiates arbitrary classes and runs commands on the server.
- Product
- Apache Struts 2 REST Plugin (struts2-rest-plugin)
- Vendor
- Apache Software Foundation
- Affected
- 2.1.6 through 2.3.33, and 2.5 through 2.5.12
- Fixed in
- 2.3.34 and 2.5.13
- Weakness
- CWE-502
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 5 Sep 2017
Classified as
References
Related CVEs
- CVE-2023-46604critical 9.82023
Apache ActiveMQ OpenWire reflective class instantiation RCE
The OpenWire protocol marshaller rebuilds an exception by reflectively instantiating an attacker-named class with an attacker-supplied string, so a crafted frame can construct a gadget class and run code on the broker.
- CVE-2023-0669high 7.22023
GoAnywhere MFT license-servlet deserialization RCE
A license-response servlet decodes and decrypts a request parameter, then deserializes the result with ObjectInputStream, so an attacker-supplied object graph executes code during readObject.
- CVE-2022-1471critical 9.82022
SnakeYAML unsafe deserialization
The default YAML parser instantiates whatever Java type a document names, so parsing untrusted YAML can construct dangerous objects.
- CVE-2017-7525critical 9.82018
jackson-databind polymorphic deserialization RCE (default typing)
With default typing enabled, a JSON document names the Java class to instantiate, so a crafted type id reaches a class whose deserialization performs a JNDI lookup and loads remote code.