CVE-2021-39139
xstream: Arbitrary code execution via unsafe deserialization of Xalan xsltc.trax.TemplatesImpl
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 load and execute arbitrary code from a remote host only by manipulating the processed input stream. A user is only affected if using the version out of the box with JDK 1.7u21 or below. However, this scenario can be adjusted easily to an external Xalan that works regardless of the version of the Java runtime. 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
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-434, CWE-502
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 · 14 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 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | xstream +3 | 1.4.18-1.1 | openSUSE-SU-2024:10592-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-39139
- github.com https://github.com/x-stream/xstream
- github.com https://github.com/x-stream/xstream/security/advisories/GHSA-64xx-cq4q-mf44
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-39139.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-39139
- 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-39139
- 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-39139.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.