CVE-2021-21341: XStream can cause a Denial of Service
CVE-2021-21341 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 vulnerability which may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service only by manipulating the processed input stream. 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:N/I:N/A:H (NVD)
Published by GitHub on 23 March 2021. Last changed 7 October 2026.
Sources
Check one version you run: look CVE-2021-21341 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.