Skip to main content
← All vulnerabilities
CVE-2021-21342GHSA-HVV8-336G-RX3MBIT-ACTIVEMQ-2021-21342

A Server-Side Forgery Request can be activated unmarshalling with XStream to access data streams from an arbitrary URL referencing a resource in an intranet or the local host

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.4.16, 5.15.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in a server-side forgery request. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • x-stream xstream

    fixed in 1.4.16

  • activemqBitnami

    fixed in 5.15.14; From 5.16.0 · through 5.16.0; From 5.16.1 · through 5.16.1

  • com.thoughtworks.xstream:xstreamMaven

    fixed in 1.4.16

References 15

x-stream.github.io

GitHub · x-stream/xstream

lists.debian.org

lists.apache.org

security.netapp.com

oracle.com

lists.fedoraproject.org

debian.org