CVE-2021-39139
published high CVSS 3.1 · 8.5XStream is vulnerable to an Arbitrary Code Execution attack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| x-stream | — | xstream< 1.4.18 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1729 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 7 | xstreamaarch64 | Advisory build | 0:1.3.1-16.el7_9 | ELSA-2021-3956 |
| Red Hat Enterprise Linux | RHEL-7 | xstreamnoarch | Advisory build | 1.3.1-16.el7_9 | RHSA-2021:3956 |
| SUSE / openSUSE | SLE-15-SP2 | xstreamnoarch | Advisory build | 1.4.18-3.14.1 | SUSE-SU-2021:3476-1 |
| Debian | bullseye | libxstream-java | Advisory build | 1.4.15-3+deb11u1 | DSA-5004-1 |
| Ubuntu | bionic | libxstream-java | Advisory build | 1.4.11.1-1+deb10u4build0.18.04.1 | USN-5946-1 |
| Amazon Linux | AL2 | xstreamnoarch | Listed in advisory | Not stated | ALAS2-2021-1729 |
Show 34 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 7 | xstreamx86_64 | Advisory build | 0:1.3.1-16.el7_9 | ELSA-2021-3956 |
| Red Hat Enterprise Linux | RHEL-7 | xstreamsrc | Advisory build | 1.3.1-16.el7_9 | RHSA-2021:3956 |
| SUSE / openSUSE | SLE-15-SP3 | xstreamnoarch | Advisory build | 1.4.18-3.14.1 | SUSE-SU-2021:3476-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstreamnoarch | Advisory build | 1.4.18-lp152.2.12.1 | OPENSUSE-SU-2021:1401-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstreamnoarch | Advisory build | 1.4.18-3.14.1 | OPENSUSE-SU-2021:3476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreamaarch64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreamppc64le | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreams390x | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreamx86_64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| Debian | buster | libxstream-java | Advisory build | 1.4.11.1-1+deb10u3 | DSA-5004-1 |
| Debian | stretch | libxstream-java | Advisory build | 1.4.11.1-1+deb9u4 | DLA-2769-1 |
| Oracle Linux | 7 | xstream-javadocaarch64 | Advisory build | 0:1.3.1-16.el7_9 | ELSA-2021-3956 |
| Oracle Linux | 7 | xstream-javadocx86_64 | Advisory build | 0:1.3.1-16.el7_9 | ELSA-2021-3956 |
| Red Hat Enterprise Linux | RHEL-7 | xstream-javadocnoarch | Advisory build | 1.3.1-16.el7_9 | RHSA-2021:3956 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstream-benchmarknoarch | Advisory build | 1.4.18-lp152.2.12.1 | OPENSUSE-SU-2021:1401-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstream-javadocnoarch | Advisory build | 1.4.18-lp152.2.12.1 | OPENSUSE-SU-2021:1401-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstream-parentnoarch | Advisory build | 1.4.18-lp152.2.12.1 | OPENSUSE-SU-2021:1401-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstream-benchmarknoarch | Advisory build | 1.4.18-3.14.1 | OPENSUSE-SU-2021:3476-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstream-javadocnoarch | Advisory build | 1.4.18-3.14.1 | OPENSUSE-SU-2021:3476-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstream-parentnoarch | Advisory build | 1.4.18-3.14.1 | OPENSUSE-SU-2021:3476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarkaarch64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarkppc64le | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarks390x | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarkx86_64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocaarch64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocppc64le | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocs390x | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocx86_64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parentaarch64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parentppc64le | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parents390x | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parentx86_64 | Advisory build | 1.4.18-1.1 | OPENSUSE-SU-2024:10592-1 |
| Ubuntu | focal | libxstream-java | Advisory build | 1.4.11.1-1ubuntu0.3 | USN-5946-1 |
| Amazon Linux | AL2 | xstreamsrc | Listed in advisory | Not stated | ALAS2-2021-1729 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| x-stream | xstream | < 1.4.18 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-502 CWE-502: Deserialization of Untrusted Data
- CWE-434 CWE-434: Unrestricted Upload of File with Dangerous Type
References
11- https://github.com/x-stream/xstream/security/advisories/GHSA-64xx-cq4q-mf44
- [debian-lts-announce] 20210929 [SECURITY] [DLA 2769-1] libxstream-java security update https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html
- FEDORA-2021-fbad11014a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/
- FEDORA-2021-5e376c0ed9 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/
- FEDORA-2021-d894ca87dc https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/
- https://security.netapp.com/advisory/ntap-20210923-0003/
- DSA-5004 https://www.debian.org/security/2021/dsa-5004
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://x-stream.github.io/CVE-2021-39139.html
Provider assertions
3GitHub_M · cna
XStream is vulnerable to an Arbitrary Code Execution attack
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 31060452e6476b42bab1db846b4376fa229198e55ba48f837d6a1de2b1640550
- Ingested
- 07 Oct 2026, 22:33:53 UTC
- Source record
- Official CVE record