CVE-2021-21351XStream is vulnerable to an Arbitrary Code Execution attack
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host 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. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
What to do
Likely to be exploited: EPSS gives a 82% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | libxstream-java | Fixed | 1.4.11.1-1ubuntu0.2 | UBUNTU-CVE-2021-21351 |
| Ubuntu 18.04 | libxstream-java | Fixed | 1.4.11.1-1~18.04.2 | UBUNTU-CVE-2021-21351 |
| Ubuntu 16.04 | libxstream-java | Fix pending | 1.4.8-1ubuntu0.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2021-21351 |
| Ubuntu 14.04 | libxstream-java | Fix pending | 1.4.7-1ubuntu0.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2021-21351 |
| Debian 14 | libxstream-java | Fixed | 1.4.15-2 | DEBIAN-CVE-2021-21351 |
| Debian 13 | libxstream-java | Fixed | 1.4.15-2 | DEBIAN-CVE-2021-21351 |
| Debian 12 | libxstream-java | Fixed | 1.4.15-2 | DEBIAN-CVE-2021-21351 |
| Red Hat Enterprise Linux 7 | xstream | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | xstream-javadoc | Will not fix Out of support scope | ||
| Maven library | com.thoughtworks.xstream:xstream | Fixed | 1.4.16 | GHSA-hrcp-8f3q-4w2c |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- x-stream xstream: affected: < 1.4.16
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2021/dsa-5004 (vendor-advisory)
References
- https://x-stream.github.io/security.html#workaround
- http://x-stream.github.io/changes.html#1.4.16
- https://github.com/x-stream/xstream/security/advisories/GHSA-hrcp-8f3q-4w2c
- https://x-stream.github.io/CVE-2021-21351.html
- https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html
- https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3E
- https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3E
- https://security.netapp.com/advisory/ntap-20210430-0002/
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/
- https://www.debian.org/security/2021/dsa-5004
- https://www.oracle.com/security-alerts/cpujan2022.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.