CVE-2021-21344: XStream is vulnerable to an Arbitrary Code Execution attack

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

9.8CVSS critical
None knownexploitation
76%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

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

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 5.5.59 5.5.58 5.5.57 5.5.56 5.5.55 5.5.54 5.5.53 5.5.52 5.5.51 5.5.50 5.5.49 5.3.13 5.1.73 5.1.72 5.1.71 5.1.70 5.1.69 5.1.68 5.1.67 5.1.66 5.1.65 5.1.64 5.1.63 5.1.62 5.1.61 5.1.60 5.1.59 5.0.96 5.0.94 5.0.93 5.0.92 5.0.91 5.0.90 5.0.89 and 66 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 load and execute arbitrary code from a remote host 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:H/I:H/A:H (NVD)

Published by GitHub on 23 March 2021. Last changed 7 October 2026.

Sources

Check one version you run: look CVE-2021-21344 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.