ADVISORIES

Vulnerability

CVE-2022-41966

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.

18 advisories report this vulnerability, across 9 ecosystems.

Advisories

  • ALAS2-2023-2007

    Amazon Linux 2 2017.12 - ALAS2-2023-2007: important priority package update for xstream

    Important CVE-2022-41966 Amazon Linux Updated 4 April 2023
  • CGA-455w-rf89-5pgx
    CVE-2022-41966 Chainguard Updated 5 November 2026
  • CGA-8q2x-h3x5-m956
    CVE-2022-41966 Chainguard Updated 5 November 2026
  • CGA-qr39-66cm-qpx2
    CVE-2022-41966 Chainguard Updated 5 November 2026
  • CGA-v6vc-jxv9-q54v
    CVE-2022-41966 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2022-41966

    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…

    CVE-2022-41966 Debian Updated 20 November 2026
  • DLA-3267-1

    libxstream-java - security update

    CVE-2022-41966 Debian Updated 20 November 2026
  • DSA-5315-1

    libxstream-java - security update

    CVE-2022-41966 Debian Updated 20 November 2026
  • GHSA-j563-grx4-pjpv

    XStream can cause Denial of Service via stack overflow

    High CVE-2022-41966 Maven Updated 16 February 2024
  • OESA-2023-1929

    xstream security update

    High CVE-2022-40151CVE-2022-41966 openEuler Updated 18 August 2026
  • OESA-2023-1937

    xstream security update

    High CVE-2022-40151CVE-2022-41966 openEuler Updated 18 August 2026
  • RHSA-2023:3625

    Red Hat Security Advisory: OpenShift Container Platform 4.10.62 security update

    CVE-2022-41966CVE-2023-20860CVE-2023-32977CVE-2023-32979 Red Hat Updated 24 November 2026
  • RHSA-2023:3663

    Red Hat Security Advisory: jenkins and jenkins-2-plugins security update

    CVE-2022-2048CVE-2022-22976CVE-2022-40149CVE-2022-40150 Red Hat Updated 24 November 2026
  • SUSE-SU-2023:1673-1

    Security update for xstream

    CVE-2022-40151CVE-2022-41966 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2022-41966

    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…

    Important CVE-2022-41966 SUSE Updated 16 October 2026
  • UBUNTU-CVE-2022-41966

    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…

    CVE-2022-41966 Ubuntu Updated 17 October 2026
  • USN-5946-1

    libxstream-java vulnerabilities

    Known exploited CVE-2021-39139CVE-2021-39140CVE-2021-39141CVE-2021-39144 Ubuntu Updated 29 June 2026
  • openSUSE-SU-2024:12796-1

    xstream-1.4.20-1.1 on GA media

    CVE-2022-40151CVE-2022-41966 openSUSE Updated 4 February 2026

References