xstreamproject xstream CVE-2021-39140 vulnerability in Xstreamproject and Other Products
Published on August 23, 2021

XStream can cause a Denial of Service

product logo product logo product logo product logo product logo product logo
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.

Github Repository Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory NVD

Vulnerability Analysis

CVE-2021-39140 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Types

What is a Marshaling, Unmarshaling Vulnerability?

The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

CVE-2021-39140 has been classified to as a Marshaling, Unmarshaling vulnerability or weakness.

What is an Infinite Loop Vulnerability?

The program contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. If the loop can be influenced by an attacker, this weakness could allow attackers to consume excessive resources such as CPU or memory.

CVE-2021-39140 has been classified to as an Infinite Loop vulnerability or weakness.


Products Associated with CVE-2021-39140

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2021-39140 are published in these products:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Affected Versions

x-stream xstream Version < 1.4.18 is affected by CVE-2021-39140

Vulnerable Packages

The following package name and versions may be associated with CVE-2021-39140

Package Manager Vulnerable Package Versions Fixed In
maven com.thoughtworks.xstream:xstream < 1.4.18 1.4.18

Exploit Probability

EPSS
0.05%
Percentile
15.62%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.