CVE-2021-39140
xstream: Infinite loop DoS via unsafe deserialization of sun.reflect.annotation.AnnotationInvocationHandler
Overview
Description
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability 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. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.
Source: OX vulnerability database
Severity
6.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
Weakness: CWE-502, CWE-835
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Maven | com.thoughtworks.xstream:xstream | <1.4.18 | 1.4.18 |
Open a package to see all its vulnerabilities.
Operating systems · 13 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | xstream +1 | 1.3.1-16.el7_9 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | xstream +1 | 0:1.3.1-16.el7_9 | RHSA-2021:3956 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | libxstream-java | 1.4.11.1-1+deb10u3 |
| 11 | libxstream-java | 1.4.15-3+deb11u1 |
| 12 | libxstream-java | 1.4.18-1 |
| 13 | libxstream-java | 1.4.18-1 |
| 14 | libxstream-java | 1.4.18-1 |
| 9 | libxstream-java | 1.4.11.1-1+deb9u4 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libxstream-java | 1.4.18-1 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | libxstream-java | 1.4.11.1-1+deb10u4build0.18.04.1 |
| 18.04-ESM | libxstream-java | 1.4.11.1-1+deb10u4build0.18.04.1 |
| 20.04 | libxstream-java | 1.4.11.1-1ubuntu0.3 |
| 20.04-ESM | libxstream-java | 1.4.11.1-1ubuntu0.3 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-39140
- github.com https://github.com/x-stream/xstream
- github.com https://github.com/x-stream/xstream/security/advisories/GHSA-6wf9-jmg9-vxcc
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-39140.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3956.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/
- 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
Show all 22 references
- 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-39140
- security.netapp.com https://security.netapp.com/advisory/ntap-20210923-0003
- security.netapp.com https://security.netapp.com/advisory/ntap-20210923-0003/
- ubuntu.com https://ubuntu.com/security/notices/USN-5946-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-39140
- www.debian.org https://www.debian.org/security/2021/dsa-5004
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
- x-stream.github.io https://x-stream.github.io/CVE-2021-39140.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.