Description
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| x-stream | xstream | < 1.4.17 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libxstream-java | 1.4.15-3 | — |
| Debian 13 | libxstream-java | 1.4.15-3 | — |
| Debian 12 | libxstream-java | 1.4.15-3 | — |
| Debian 9 | libxstream-java | 1.4.11.1-1+deb9u3 | DLA-2704-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libxstream-java | No fix yet | — |
| Ubuntu 18.04 LTS | libxstream-java | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | libxstream-java | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libxstream-java | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | xstream +1 | 1.3.1-14.el7_9 | RHSA-2021:2683 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | xstream | 1.4.17-3.11.2 | SUSE-SU-2021:1995-1 |
| SLES 15 SP2 | xstream | 1.4.17-3.11.2 | SUSE-SU-2021:1995-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Manager Server Module 4.2 | xstream | 1.4.17-3.11.2 | SUSE-SU-2021:1995-1 |
| SUSE Manager Server Module 4.1 | xstream | 1.4.17-3.11.2 | SUSE-SU-2021:1995-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | xstream | 1.4.18-1.1 | openSUSE-SU-2024:10592-1 |
| openSUSE Leap 15.3 | xstream | 1.4.17-3.11.2 | openSUSE-SU-2021:1995-1 |
| openSUSE Leap 15.2 | xstream | 1.4.17-lp152.2.9.1 | openSUSE-SU-2021:0911-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | xstream +1 | 1.3.1-14.amzn2 | ALAS2-2021-1698 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | xstream +1 | 1.3.1-14.el7_9 | ELSA-2021-2683 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
MyBlackManba/CVE-2021-29505 ★ 6 · Jun 8, 2021
对CVE-2021-29505进行复现,并分析学了下Xstream反序列化过程
-
cuijiung/xstream-CVE-2021-29505 ★ 0 · Jul 11, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- XStream <1.4.17 - Remote Code Execution http/cves/2021/CVE-2021-29505.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.thoughtworks.xstream:xstream | < 1.4.17 | 1.4.17 | GHSA-7chv-rrw6-w6fc |
Advisories 11
- RHSA-2021:2683 Red Hat Security Advisory: xstream security update Red Hat Security Advisories (RHSA) · Oct 8, 2026
- WID-SEC-2022-0607 Red Hat FUSE: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 9, 2026
- DLA-2704-1 libxstream-java - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10592-1 xstream-1.4.18-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1995-1 Security update for xstream SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0911-1 Security update for xstream SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1995-1 Security update for xstream SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2026-0180 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- ALAS2-2021-1698 Important: xstream security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 5, 2021
- ELSA-2021-2683 Important: xstream security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jul 13, 2021
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fc
- https://github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624f
- https://github.com/x-stream/xstream/commit/f0c4a8d861b68ffc3119cfbbbd632deee624e227
- https://lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f@%3Cdev.jmeter.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/07/msg00004.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
- https://security.netapp.com/advisory/ntap-20210708-0007
- 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://www.oracle.com/security-alerts/cpuoct2021.html
- https://x-stream.github.io/CVE-2021-29505.html