CVE-2021-21341
JSON

7.5high

XStream can cause a Denial of Service

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
77.8% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2p3x-qw9c-25hhBIT-ACTIVEMQ-2021-21341

Description

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.

Affected

Product or packageVersionsReported by
x-stream xstream< 1.4.16CVE List
com.thoughtworks.xstream:xstream (Maven)before 1.4.16GitHub Advisory Database
netapp oncommand_insightNot specifiedNVD
apache activemqbefore 5.15.14, 5.16.0, 5.16.1NVD
apache jmeterbefore 5.5NVD
xstream xstreambefore 1.4.16NVD
debian debian_linux9.0, 10.0, 11.0NVD
fedoraproject fedora33, 34, 35NVD
oracle banking_enterprise_default_management2.10.0, 2.12.0NVD
oracle banking_platform2.4.0, 2.7.1, 2.9.0, 2.12.0NVD
oracle business_activity_monitoring11.1.1.9.0, 12.2.1.3.0, 12.2.1.4.0NVD
oracle communications_billing_and_revenue_management_elastic_charging_engine12.0.0.3.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.1high CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:C
Bitnami Vulnerability Databasehigh rating

Classification

CWE-400CWE-502CWE-835

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

The vulnerability 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.

Patches

If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.

Workarounds

See workarounds for the different versions covering all CVEs.

References

See full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for CVE-2021-21341.

Credits

The vulnerability was discovered and reported by threedr3am.

For more information

If you have any questions or comments about this advisory:

NVD (es)

XStream es una biblioteca de Java para serializar objetos a XML y viceversa.&#xa0;En XStream anterior a la versión 1.4.16, se presenta una vulnerabilidad que puede permitir a un atacante remoto asignar el 100% del tiempo de CPU en el sistema de destino según el tipo de CPU o la ejecución paralela de dicha carga útil, resultando en una denegación de servicio solo mediante la manipulación del flujo de entrada procesado.&#xa0;Ningún usuario está afectado si siguió la recomendación de configurar el framework de seguridad de XStream con una lista blanca limitada a los tipos mínimos requeridos.&#xa0;Si confía en la lista negra predeterminada de XStream del Framework de Seguridad, tendrá que usar al menos la versión 1.4.16

References

https://x-stream.github.io/security.html#workaroundadvisory, mitigation, third-party-advisory, web
http://x-stream.github.io/changes.html#1.4.16advisory, release-notes, third-party-advisory, web
https://github.com/x-stream/xstream/security/advisories/GHSA-2p3x-qw9c-25hhadvisory, third-party-advisory, web
https://x-stream.github.io/CVE-2021-21341.htmladvisory, exploit, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2021/04/msg00002.htmladvisory, mailing-list, third-party-advisory, web
https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3Eadvisory, issue-tracking, mailing-list, third-party-advisory
https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3Eadvisory, issue-tracking, mailing-list, third-party-advisory
https://security.netapp.com/advisory/ntap-20210430-0002/advisory, third-party-advisory
https://www.oracle.com//security-alerts/cpujul2021.htmladvisory, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/advisory, mailing-list, third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/advisory, mailing-list, third-party-advisory, vendor-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmladvisory, third-party-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-21341 changed 2026-10-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-2p3x-qw9c-25hh changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21341 changed 2026-10-07Public domain
Bitnami Vulnerability DatabaseBIT-ACTIVEMQ-2021-21341 changed 2026-09-08Apache-2.0