Vulnerability · Published Mar 22, 2021 · Assigned by GitHub_M
CVE-2021-21345XStream is vulnerable to a Remote Command Execution attack
Medium 5.8
In plain English
A medium-severity code injection in xstream from x-stream. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 72.3% (higher than 99.4% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 which may allow a remote attacker who has sufficient rights to execute commands of the 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libxstream-java | 1.4.15-2 | DEBIAN-CVE-2021-21345 |
| Debian:13 | libxstream-java | 1.4.15-2 | DEBIAN-CVE-2021-21345 |
| Debian:14 | libxstream-java | 1.4.15-2 | DEBIAN-CVE-2021-21345 |
| Maven | com.thoughtworks.xstream:xstream | 1.4.16 | GHSA-hwpc-8xqv-jvj4 |
Affected products (as reported)
Weakness: CWE-94, CWE-502 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
References
- https://x-stream.github.io/security.html#workaround x_refsource_MISC
- http://x-stream.github.io/changes.html#1.4.16 x_refsource_MISC
- https://github.com/x-stream/xstream/security/advisories/GHSA-hwpc-8xqv-jvj4 x_refsource_CONFIRM
- https://x-stream.github.io/CVE-2021-21345.html x_refsource_MISC
- [debian-lts-announce] 20210403 [SECURITY] [DLA 2616-1] libxstream-java security update mailing-list, x_refsource_MLIST
- [jmeter-dev] 20210406 [GitHub] [jmeter] sseide opened a new pull request #655: update x-stream to 1.4.16 (from 1.4.15) mailing-list, x_refsource_MLIST
- [activemq-users] 20210427 Release date for ActiveMQ v5.16.2 to fix CVEs mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuApr2021.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210430-0002/ x_refsource_CONFIRM
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- FEDORA-2021-fbad11014a vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-d894ca87dc vendor-advisory, x_refsource_FEDORA
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- FEDORA-2021-5e376c0ed9 vendor-advisory, x_refsource_FEDORA
- DSA-5004 vendor-advisory, x_refsource_DEBIAN
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC