8.2

CVE-2022-41966: XStream Denial of Service via stack overflow

Analyzed
AliasesUBUNTU-CVE-2022-41966DEBIAN-CVE-2022-41966DLA-3267-1
Published 27-12-2022Last modified 11-04-2025

Vulnerability summary

CVE-2022-41966 is a high (CVSS 8.2) vulnerability in x-stream xstream. EPSS estimates a 9.35% chance of exploitation in the next 30 days, higher than 95.3% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.2/10
010
High · v3.1 (CVE.org)
EPSS score
9.35%
0%100%
Low · +0.59 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 5 · Related 3

Timeline

  1. 27-12-2022
    PublishedVulnerability first disclosed.
  2. 11-04-2025
    Last modifiedVulnerability information updated.

Description

XStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

9.35%

Chance of exploitation in the next 30 days

Percentile

95%

Versus all other CVEs

30-day change

Increase +0.59 pp

From 8.76% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (x-stream.github.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard2 products
  • hadoop-fips-3.3.6All versions (No fix recorded)
  • hadoop-fips-3.4.2All versions (No fix recorded)
Com.thoughtworks.xstream1 product
  • xstream< 1.4.20
Debian1 product
  • libxstream-java< 1.4.15-3+deb11u2 | < 1.4.11.1-1+deb10u4 | < 1.4.20-1
Ubuntu1 product
  • libxstream-java< 1.4.7-1ubuntu0.1+esm1 | < 1.4.8-1ubuntu0.1+esm1 | < 1.4.11.1-1+deb10u4build0.18.04.1 | < 1.4.11.1-1ubuntu0.3 | < 1.4.18-2ubuntu0.1 | All versions (No fix recorded)
X-stream1 product
Xstream1 product

6 vendors · 7 products

References

10 links