Vulnerability · Published Aug 23, 2021 · Assigned by GitHub_M

CVE-2021-39140XStream can cause a Denial of Service

Medium 6.5

In plain English

A medium-severity unsafe deserialization 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 5.9% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)5.9%top 6.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service 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. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libxstream-java1.4.18-1DEBIAN-CVE-2021-39140
Debian:13libxstream-java1.4.18-1DEBIAN-CVE-2021-39140
Debian:14libxstream-java1.4.18-1DEBIAN-CVE-2021-39140
Mavencom.thoughtworks.xstream:xstream1.4.18GHSA-6wf9-jmg9-vxcc
Ubuntu:22.04:LTSlibxstream-java1.4.18-2ubuntu0.1USN-5946-1

Affected products (as reported)

VendorProductVersions
x-stream xstream < 1.4.18

Weakness: CWE-502, CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References