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.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)82.4%top 0.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Debian:12libxstream-java1.4.15-1DEBIAN-CVE-2020-26259
Debian:13libxstream-java1.4.15-1DEBIAN-CVE-2020-26259
Debian:14libxstream-java1.4.15-1DEBIAN-CVE-2020-26259
Mavencom.thoughtworks.xstream:xstream1.4.15GHSA-jfvx-7wrx-43fh

Affected products (as reported)

VendorProductVersions
x-stream xstream < 1.4.15

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N

References