CVE-2021-21348: XStream is vulnerable to an attack using Regular Expression for a Denial of Service (ReDos)

CVE-2021-21348 affects 236 listed versions of Oracle MySQL, Apache ActiveMQ in the Dawnsentry catalogue.

7.5CVSS high
None knownexploitation
14%EPSS (next 30 days)
23 March 2021published

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.

Oracle MySQL

160 of 221 listed versions are affected. No fixed release is named. The newest release, 26.10.0, is not affected.

7.6.29 7.6.21 7.6.20 7.6.15 7.6.14 7.6.13 7.5.33 7.5.25 7.5.24 7.5.19 7.5.18 7.5.17 7.4.35 7.4.34 7.4.29 7.4.28 7.4.27 7.3.30 7.3.29 7.3.28 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.7.44 5.7.43 5.7.42 5.7.41 5.7.40 5.7.39 5.7.38 5.7.37 5.7.36 5.7.35 5.7.34 5.7.33 5.7.32 5.7.31 5.7.30 5.6.51 5.6.50 5.6.49 5.6.48 5.6.47 5.6.46 5.6.45 5.6.44 5.6.43 5.6.42 5.6.41 5.6.40 5.6.39 5.6.38 5.6.37 5.5.63 5.5.62 5.5.61 5.5.60 and 100 more

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 which may allow a remote attacker to occupy a thread that consumes maximum CPU time and will never return. 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-21348 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.