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

Published Jan 29, 2022
·
Updated

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 NOREFERENCE mode to prevent recursion. See GHSA-rmr5-cpv2-vgjf for further details on a workaround if an upgrade is not possible.

Affected Software

22 affected componentsFixes available
redhat/jenkins<0:2.319.3.1650348949-1.el7
0:2.319.3.1650348949-1.el7
redhat/xstream<1.4.19
1.4.19
Xstream Project Xstream<1.4.19
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Debian Debian Linux=9.0
Oracle Commerce Guided Search=11.3.2
Oracle Communications Brm - Elastic Charging Engine<12.0.0.4.6
Oracle Communications Brm - Elastic Charging Engine=12.0.0.5.0
Oracle Communications Cloud Native Core Automated Test Suite=1.9.0
Oracle Communications Diameter Intelligence Hub>=8.0.0<=8.1.0
Oracle Communications Diameter Intelligence Hub>=8.2.0<=8.2.6
Oracle Communications Policy Management=12.6.0.0.0
Oracle FLEXCUBE Private Banking=12.1.0
Oracle Retail Xstore Point of Service=16.0.6
Oracle Retail Xstore Point of Service=17.0.4
Oracle Retail Xstore Point of Service=18.0.3
Oracle Retail Xstore Point of Service=19.0.2
Oracle Retail Xstore Point of Service=20.0.1
Jenkins Jenkins<2.319.3
Jenkins Jenkins>=2.321<2.334
XStream XStream<1.4.19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/jenkins to a version that resolves this vulnerability.

    Fixed in 0:2.319.3.1650348949-1.el7
  2. Upgrade

    Upgrade redhat/xstream to a version that resolves this vulnerability.

    Fixed in 1.4.19
  3. Upgrade

    Upgrade x-stream/xstream to a version that resolves this vulnerability.

    Fixed in 1.4.19
  4. Configuration

    If you cannot upgrade, set XStream to NO_REFERENCE mode to prevent highly recursive collections/maps from causing denial of service.

    XStream NO_REFERENCE mode = set to prevent recursion

Event History

Jan 29, 2022
CVE Published
12:00 AM
Feb 1, 2022
CVE Published
via MITRE·12:08 PM
Data Sourced
via MITRE·12:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 2, 2022
Data Sourced
via Red Hat·05:11 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-43859?

CVE-2021-43859 is a vulnerability in XStream, an open source Java library, that allows a remote attacker to allocate 100% CPU time on the target system resulting in a denial of service.

2

What is the severity of CVE-2021-43859?

CVE-2021-43859 has a severity rating of 7.5 out of 10, which is considered high.

3

How does CVE-2021-43859 affect XStream?

CVE-2021-43859 affects XStream versions prior to 1.4.19.

4

How can I fix CVE-2021-43859?

To fix CVE-2021-43859, update XStream to version 1.4.19 or later.

5

Where can I find more information about CVE-2021-43859?

You can find more information about CVE-2021-43859 on the GitHub Security Advisory page and the XStream CVE-2021-43859 page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203