Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-39140

xstream: Infinite loop DoS via unsafe deserialization of sun.reflect.annotation.AnnotationInvocationHandler

Overview

Published
23 Aug 2021
Modified
7 Oct 2026
Medium CVE
1 Registry packages
3 OS packages
5 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

6.3 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H

Weakness: CWE-502, CWE-835

Affected packages · 1

Packages affected by CVE-2021-39140
EcosystemPackageVulnerableFixed in
Maven com.thoughtworks.xstream:xstream <1.4.18 1.4.18

Open a package to see all its vulnerabilities.

Operating systems · 13 fixes

Oracle Linux 1 release · 1 package

fixed 1
xstream
Oracle Linux fixes for CVE-2021-39140
ReleasePackageFixed in
7 xstream +1 1.3.1-16.el7_9

Red Hat 1 release · 1 package

fixed 1
xstream
Red Hat fixes for CVE-2021-39140
ReleasePackageFixed inAdvisory
7 xstream +1 0:1.3.1-16.el7_9 RHSA-2021:3956

debian 6 releases · 1 package

fixed 6
libxstream-java
debian fixes for CVE-2021-39140
ReleasePackageFixed in
10 libxstream-java 1.4.11.1-1+deb10u3
11 libxstream-java 1.4.15-3+deb11u1
12 libxstream-java 1.4.18-1
13 libxstream-java 1.4.18-1
14 libxstream-java 1.4.18-1
9 libxstream-java 1.4.11.1-1+deb9u4

echo 1 release · 1 package

fixed 1
libxstream-java
echo fixes for CVE-2021-39140
ReleasePackageFixed in
libxstream-java 1.4.18-1

ubuntu 4 releases · 1 package

fixed 4
libxstream-java
ubuntu fixes for CVE-2021-39140
ReleasePackageFixed in
18.04 libxstream-java 1.4.11.1-1+deb10u4build0.18.04.1
18.04-ESM libxstream-java 1.4.11.1-1+deb10u4build0.18.04.1
20.04 libxstream-java 1.4.11.1-1ubuntu0.3
20.04-ESM libxstream-java 1.4.11.1-1ubuntu0.3

References

Show all 22 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.