CVE-2021-21348
XStream: ReDoS vulnerability
Overview
Description
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to occupy a thread that consumes maximum CPU time and will never return. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
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, CWE-502
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | activemq | <5.15.14=5.16.0=5.16.1 | 5.15.14 |
| Maven | com.thoughtworks.xstream:xstream | <1.4.16 | 1.4.16 |
Open a package to see all its vulnerabilities.
Operating systems · 15 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | xstream +1 | eol |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | libxstream-java | 1.4.11.1-1+deb10u3 |
| 11 | libxstream-java | 1.4.15-2 |
| 12 | libxstream-java | 1.4.15-2 |
| 13 | libxstream-java | 1.4.15-2 |
| 14 | libxstream-java | 1.4.15-2 |
| 9 | libxstream-java | 1.4.11.1-1+deb9u2 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libxstream-java | 1.4.15-2 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | xstream +3 | 1.4.18-1.1 | openSUSE-SU-2024:10592-1 |
ubuntu 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | libxstream-java | 1.4.11.1-1~18.04.2 |
| 18.04-ESM | libxstream-java | 1.4.11.1-1~18.04.2 |
| 20.04 | libxstream-java | 1.4.11.1-1ubuntu0.2 |
| 20.04-ESM | libxstream-java | 1.4.11.1-1ubuntu0.2 |
| 22.04 | libxstream-java | 1.4.15-2 |
| 24.04 | libxstream-java | 1.4.15-2 |
References
- x-stream.github.io http://x-stream.github.io/changes.html#1.4.16
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-21348
- github.com https://github.com/x-stream/xstream
- github.com https://github.com/x-stream/xstream/security/advisories/GHSA-56p8-3fh9-4cvq
- lists.apache.org https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd@%3Cusers.activemq.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0@%3Cdev.jmeter.apache.org%3E
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/
Show all 27 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-21348
- security.netapp.com https://security.netapp.com/advisory/ntap-20210430-0002
- security.netapp.com https://security.netapp.com/advisory/ntap-20210430-0002/
- ubuntu.com https://ubuntu.com/security/notices/USN-4943-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6978-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-21348
- www.debian.org https://www.debian.org/security/2021/dsa-5004
- www.oracle.com https://www.oracle.com//security-alerts/cpujul2021.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuoct2021.html
- x-stream.github.io https://x-stream.github.io/CVE-2021-21348.html
- x-stream.github.io https://x-stream.github.io/security.html#workaround
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.