Skip to main content
Public proof of conceptFix available

CVE-2021-43859

A public proof of concept exists; no exploitation attested.

  • Published2022-02-01
  • Fixed in1.4.19
  • WeaknessCWE-400

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-02-0112:15CVE publishedNVD

Versions per branch

NVD · OSV
Xstream
BranchAffectedFixed in
1.4< 1.4.191.4.19
Oracle retail xstore point of service
BranchAffectedFixed in
16.0= 16.0.6no fix published
17.0= 17.0.4no fix published
18.0= 18.0.3no fix published
19.0= 19.0.2no fix published
20.0= 20.0.1no fix published
Jenkins
BranchAffectedFixed in
2.x≥ 2.321, < 2.3342.334
2.x≥ 2.321.0, < 2.334.02.334.0
2.319< 2.319.32.319.3

8 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • x-stream xstream
    Affected
    • = < 1.4.19no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-07-25

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • com.thoughtworks.xstream:xstreamTuxCare:Mavenfrom 1.4.17 · fixed in 1.4.17-tuxcare.2
  • com.thoughtworks.xstream:xstreamRed Hat Lightwell:Mavenall versions · fixed in 1.4.18.rhlw-00006
  • hadoop-fips-3.3.6Chainguardall versions · no fixed version listedand 1 other package
  • jenkinsRed Hat:openshift:3.11::el7all versions · fixed in 0:2.319.3.1650348949-1.el7
  • jenkins-2-pluginsRed Hat:openshift:3.11::el7all versions · fixed in 0:3.11.1650371376-1.el7
  • libxstream-javaUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • libxstream-javaUbuntu:Pro:14.04:LTSall versions · no fixed version listed
  • libxstream-javaUbuntu:26.10all versions · no fixed version listed

21 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-43859 Red Hat Product Security4 products fixed · 19 known affected

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

    xstream as a component of Red Hat BPM Suite 6 · xstream as a component of Red Hat Data Grid 8 · xstream as a component of Red Hat Decision Manager 7 · +16 more

  • RHSA-2022:5606 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Integration Camel Extensions for Quarkus 2.7 security update

  • RHSA-2022:5532 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Fuse 7.11.0 release and security update

  • RHSA-2022:1420 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 3.11.685 security and bug fix update

Full record on NVD

Fix

  1. Update Xstream to 1.4.19
  2. Vendor fix Red Hat Product Security RHSA-2022:5606 · 1 productFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2022:5532 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Installation instructions are available from the Fuse 7.11.0 product documentation page: https://access.redhat.com/documentation/en-us/red_ha…
  4. Vendor fix Red Hat Product Security RHSA-2022:1420 · 2 productsFor OpenShift Container Platform 3.11 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/3.11/release_notes/ocp_3_1…
  5. No fix available, says the vendor Red Hat Product Security CVE-2021-43859 · 6 productsAffected
  6. No fix planned, says the vendor Red Hat Product Security CVE-2021-43859 · 12 productsOut of support scope
  7. No fix planned, says the vendor Red Hat Product Security CVE-2021-43859 · 1 productWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-22
  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • NVDCVSS 2.05read 2026-10-23
  • CNAweakness (CWE)CWE-400known since 2026-10-23
  • NVDweakness (CWE)CWE-400read 2026-10-23
  • FIRST EPSSEPSS score8.5 %2026-12-03
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2022-01-31

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-02-01
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-rmr5-cpv2-vgjf

Frequently asked questions

What is CVE-2021-43859?

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.

Is CVE-2021-43859 actively exploited?

A proof-of-concept exploit exists for CVE-2021-43859, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2021-43859?

CVE-2021-43859 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running xstream? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record