Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-43859

xstream: Injecting highly recursive collections or maps can cause a DoS

Overview

Published
1 Feb 2022
Modified
17 Jun 2026
High CVE
5 Registry packages
7 OS packages
4 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-400

Affected packages · 5

Packages affected by CVE-2021-43859
EcosystemPackageVulnerableFixed in
Bitnami jenkins <2.319.3>=2.321.0, <2.334.0 2.319.32.334.0
Maven com.thoughtworks.xstream:xstream <1.4.19 1.4.19
Seal Maven com.thoughtworks.xstream:xstream >=1.3.1+sp0, <1.3.1+sp999>=1.4.11.1+sp0, <1.4.11.1+sp3 1.3.1+sp9991.4.11.1+sp3
Seal Maven seal.sp1.com.thoughtworks.xstream:xstream >=1.3.1, <1.3.1+sp999>=1.4.11.1, <1.4.11.1+sp999 1.3.1+sp9991.4.11.1+sp999
Seal Maven seal.sp2.com.thoughtworks.xstream:xstream >=1.4.11.1, <1.4.11.1+sp999 1.4.11.1+sp999

Open a package to see all its vulnerabilities.

Operating systems · 14 fixes

Red Hat 3 releases · 3 packages

affected 3 eol 1 fixed 2
jenkins xstream jenkins-2-plugins
Red Hat fixes for CVE-2021-43859
ReleasePackageFixed inAdvisory
7 jenkins affected —
7 xstream +1 eol —
7 jenkins 0:2.319.3.1650348949-1.el7 RHSA-2022:1420
7 jenkins-2-plugins 0:3.11.1650371376-1.el7 RHSA-2022:1420
8 jenkins affected —
9 jenkins affected —

debian 6 releases · 1 package

affected 1 fixed 5
libxstream-java
debian fixes for CVE-2021-43859
ReleasePackageFixed in
10 libxstream-java affected
11 libxstream-java 1.4.15-3+deb11u3
12 libxstream-java 1.4.19-1
13 libxstream-java 1.4.19-1
14 libxstream-java 1.4.19-1
9 libxstream-java 1.4.11.1-1+deb9u5

echo 1 release · 1 package

fixed 1
libxstream-java
echo fixes for CVE-2021-43859
ReleasePackageFixed in
libxstream-java 1.4.19-1

openSUSE 1 release · 1 package

fixed 1
xstream
openSUSE fixes for CVE-2021-43859
ReleasePackageFixed inAdvisory
Tumbleweed xstream +3 1.4.19-1.1 openSUSE-SU-2024:11809-1

References

Show all 18 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.