CVE-2021-43859
xstream: Injecting highly recursive collections or maps can cause a DoS
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| libxstream-java | 1.4.19-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | xstream +3 | 1.4.19-1.1 | openSUSE-SU-2024:11809-1 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2022/02/09/1
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-43859
- github.com https://github.com/x-stream/xstream
- github.com https://github.com/x-stream/xstream/commit/e8e88621ba1c85ac3b8620337dd672e0c0c3a846
- github.com https://github.com/x-stream/xstream/security/advisories/GHSA-rmr5-cpv2-vgjf
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/02/msg00018.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/12/msg00023.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VACQYG356OHUTD5WQGAQ4L2TTFTAV3SJ
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VACQYG356OHUTD5WQGAQ4L2TTFTAV3SJ/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XODFRE2ZL64FICBJDOPWOLPTSSAI4U7X
Show all 18 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XODFRE2ZL64FICBJDOPWOLPTSSAI4U7X/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VACQYG356OHUTD5WQGAQ4L2TTFTAV3SJ
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XODFRE2ZL64FICBJDOPWOLPTSSAI4U7X
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-43859
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-43859
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
- x-stream.github.io https://x-stream.github.io/CVE-2021-43859.html
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.