Vulnerability · Published Feb 1, 2022 · Assigned by GitHub_M

CVE-2021-43859Denial of Service by injecting highly recursive collections or maps in XStream

High 7.5

In plain English

A high-severity uncontrolled resource consumption in xstream from x-stream. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 7.9% (higher than 95% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)7.9%top 5.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

XStream is an open source java library to serialize objects to XML and back again. Versions prior to 1.4.19 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. XStream 1.4.19 monitors and accumulates the time it takes to add elements to collections and throws an exception if a set threshold is exceeded. Users are advised to upgrade as soon as possible. Users unable to upgrade may set the NO_REFERENCE mode to prevent recursion. See GHSA-rmr5-cpv2-vgjf for further details on a workaround if an upgrade is not possible.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libxstream-java1.4.19-1DEBIAN-CVE-2021-43859
Debian:13libxstream-java1.4.19-1DEBIAN-CVE-2021-43859
Debian:14libxstream-java1.4.19-1DEBIAN-CVE-2021-43859
Mavencom.thoughtworks.xstream:xstream1.4.19GHSA-rmr5-cpv2-vgjf
Ubuntu:22.04:LTSlibxstream-javano fix listedUBUNTU-CVE-2021-43859
Ubuntu:24.04:LTSlibxstream-javano fix listedUBUNTU-CVE-2021-43859
Ubuntu:25.10libxstream-javano fix listedUBUNTU-CVE-2021-43859
Ubuntu:26.04:LTSlibxstream-javano fix listedUBUNTU-CVE-2021-43859
Ubuntu:26.10libxstream-javano fix listedUBUNTU-CVE-2021-43859

Affected products (as reported)

VendorProductVersions
x-stream xstream < 1.4.19

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References