CVE-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
CVE-2021-21342 affects 76 listed versions of Apache ActiveMQ in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Apache ActiveMQ
76 of 143 listed versions are affected. Fixed in 5.15.14. The newest release, 6.4.0, is not affected.
5.16.1 5.16.0 5.15.13 5.15.12 5.15.11 5.15.10 5.15.9 5.15.8 5.15.7 5.15.6 5.15.5 5.15.4 5.15.3 5.15.2 5.14.5 5.14.4 5.14.3 5.14.2 5.14.1 5.14.0 5.13.5 5.13.4 5.13.3 5.13.2 5.13.1 5.13.0 5.12.3 5.12.2 5.12.1 5.12.0 5.11.4 5.11.3 5.11.2 5.11.1 5.11.0 5.10.2 5.10.1 5.10.0 5.9.1 5.9.0 5.8.0 5.7.0 5.6.0 5.5.1 5.5.0 5.4.3 5.4.2 5.4.1 5.4.0 5.3.2 5.3.1 5.3.0 5.2.0 5.1.0 5.0.0 4.1.2 4.1.1 4.1.0 4.0.2 4.0.1 and 16 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (NVD)
Published by GitHub on 23 March 2021. Last changed 7 October 2026.
Sources
Check one version you run: look CVE-2021-21342 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.