CVE-2021-21342
published medium CVSS 3.1 · 5.3A Server-Side Forgery Request can be activated unmarshalling with XStream to access data streams from an arbitrary URL referencing a resource in an intranet or the local host
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| x-stream | — | xstream< 1.4.16 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2030 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP2 | xstreamnoarch | Advisory build | 1.4.16-3.8.1 | SUSE-SU-2021:1840-1 |
| Debian | stretch | libxstream-java | Advisory build | 1.4.11.1-1+deb9u2 | DLA-2616-1 |
| Ubuntu | bionic | libxstream-java | Advisory build | 1.4.11.1-1~18.04.2 | USN-4943-1 |
| Amazon Linux | AL2 | xstreamnoarch | Listed in advisory | Not stated | ALAS2-2023-2030 |
| SUSE / openSUSE | SLE-15-SP3 | xstreamnoarch | Advisory build | 1.4.16-3.8.1 | SUSE-SU-2021:1840-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstreamnoarch | Advisory build | 1.4.16-lp152.2.6.1 | OPENSUSE-SU-2021:0832-1 |
Show 27 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstreamnoarch | Advisory build | 1.4.16-3.8.1 | OPENSUSE-SU-2021:1840-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 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstream-benchmarknoarch | Advisory build | 1.4.16-lp152.2.6.1 | OPENSUSE-SU-2021:0832-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstream-javadocnoarch | Advisory build | 1.4.16-lp152.2.6.1 | OPENSUSE-SU-2021:0832-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | xstream-parentnoarch | Advisory build | 1.4.16-lp152.2.6.1 | OPENSUSE-SU-2021:0832-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstream-benchmarknoarch | Advisory build | 1.4.16-3.8.1 | OPENSUSE-SU-2021:1840-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstream-javadocnoarch | Advisory build | 1.4.16-3.8.1 | OPENSUSE-SU-2021:1840-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xstream-parentnoarch | Advisory build | 1.4.16-3.8.1 | OPENSUSE-SU-2021:1840-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 | esm | libxstream-java | Advisory build | 1.4.7-1ubuntu0.1+esm2 | USN-6978-1 |
| Ubuntu | focal | libxstream-java | Advisory build | 1.4.11.1-1ubuntu0.2 | USN-4943-1 |
| Ubuntu | xenial | libxstream-java | Advisory build | 1.4.8-1ubuntu0.1+esm3 | USN-6978-1 |
| Amazon Linux | AL2 | xstreamsrc | Listed in advisory | Not stated | ALAS2-2023-2030 |
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 where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in a server-side forgery request. 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.
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
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| x-stream | xstream | < 1.4.16 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-502 CWE-502 Deserialization of Untrusted Data
- CWE-918 CWE-918 Server-Side Request Forgery (SSRF)
References
15- http://x-stream.github.io/changes.html#1.4.16
- https://github.com/x-stream/xstream/security/advisories/GHSA-hvv8-336g-rx3m
- [activemq-users] 20210427 Release date for ActiveMQ v5.16.2 to fix CVEs https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3E
- [jmeter-dev] 20210406 [GitHub] [jmeter] sseide opened a new pull request #655: update x-stream to 1.4.16 (from 1.4.15) https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3E
- [debian-lts-announce] 20210403 [SECURITY] [DLA 2616-1] libxstream-java security update https://lists.debian.org/debian-lts-announce/2021/04/msg00002.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-20210430-0002/
- DSA-5004 https://www.debian.org/security/2021/dsa-5004
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://x-stream.github.io/CVE-2021-21342.html
- https://x-stream.github.io/security.html#workaround
Provider assertions
3GitHub_M · cna
A Server-Side Forgery Request can be activated unmarshalling with XStream to access data streams from an arbitrary URL referencing a resource in an intranet or the local host
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 01aeeef69cc5b50b21d143670e6b3213d7dae134d721acfe91129a33a7e71108
- Ingested
- 07 Oct 2026, 22:33:22 UTC
- Source record
- Official CVE record