CVE catalog

CVE-2022-41966

libxstream-java: CVE-2022-41966

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
9.01% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibxstream-javasid1.4.21-2fixed
Debianlibxstream-javaforky1.4.21-2fixed
Debianlibxstream-javatrixie1.4.21-1fixed
Debianlibxstream-javabookworm1.4.20-1+deb12u1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibxstream-javasourcesid1.4.20-1not yet assignedNot reported[1027754]
Debianlibxstream-javasourceforky1.4.20-1not yet assignedNot reported[1027754]
Debianlibxstream-javasourcetrixie1.4.20-1not yet assignedNot reported[1027754]
Debianlibxstream-javasourcebookworm1.4.20-1not yet assignedNot reported[1027754]

[Debian bug #1027754]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.4.20-1+deb12u1 · all · bookworm

      Fixed · Fixed: 1.4.20-1

      dsa · libxstream-java · debian · bookworm

    • 1.4.20-1+deb12u1 · all · bookworm

      Fixed · Fixed: 1.4.20-1

      dsa · libxstream-java · debian · bookworm

Observed:

References