Vulnerability · Published Dec 16, 2020 · Assigned by GitHub_M
CVE-2020-26259XStream is vulnerable to an Arbitrary File Deletion on the local host when unmarshalling
Medium 6.8
In plain English
A medium-severity OS command 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 82.4% (higher than 99.7% of all known vulnerabilities). Ready-made attack tooling exists: 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.15, is vulnerable to an Arbitrary File Deletion on the local host when unmarshalling. The vulnerability may allow a remote attacker to delete arbitrary know files on the host as log as the executing process has sufficient rights only by manipulating the processed input stream. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.15. The reported vulnerability does not exist running Java 15 or higher. No user is affected, who followed the recommendation to setup XStream's Security Framework with a whitelist! Anyone relying on XStream's default blacklist can immediately switch to a whilelist for the allowed types to avoid the vulnerability. Users of XStream 1.4.14 or below who still want to use XStream default blacklist can use a workaround described in more detailed in the referenced advisories.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26259 |
| Debian:13 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26259 |
| Debian:14 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26259 |
| Maven | com.thoughtworks.xstream:xstream | 1.4.15 | GHSA-jfvx-7wrx-43fh |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-jfvx-7wrx-43fh x_refsource_CONFIRM
- https://x-stream.github.io/CVE-2020-26259.html x_refsource_MISC
- [struts-commits] 20201221 [struts] branch master updated: Upgrades XStream to version 1.4.15 to address CVE-2020-26258, CVE-2020-26259 mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20201231 [SECURITY] [DLA 2507-1] libxstream-java security update mailing-list, x_refsource_MLIST
- DSA-4828 vendor-advisory, x_refsource_DEBIAN
- https://security.netapp.com/advisory/ntap-20210409-0005/ x_refsource_CONFIRM
- FEDORA-2021-fbad11014a vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-d894ca87dc vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-5e376c0ed9 vendor-advisory, x_refsource_FEDORA