CVE-2022-41966

Summary

CVECVE-2022-41966
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-12-28 00:15:00 UTC
Updated2023-06-27 14:04:00 UTC
DescriptionXStream 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.

Risk And Classification

Problem Types: CWE-674

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Xstream Project Xstream All All All All

References

ReferenceSourceLinkTags
XStream - CVE-2022-41966 MISC x-stream.github.io
XStream can cause a Denial of Service by injecting recursive collections or maps based on element's hash values raising a stack overflow · Advisory · x-stream/xstream · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 181468 Debian Security Update for libxstream-java (DLA 3267-1)
  • 181470 Debian Security Update for libxstream-java (DSA 5315-1)
  • 183580 Debian Security Update for libxstream-java (CVE-2022-41966)
  • 199237 Ubuntu Security Notification for XStream Vulnerabilities (USN-5946-1)
  • 241746 Red Hat OpenShift Container Platform 4.10 Security Update (RHSA-2023:3625)
  • 354854 Amazon Linux Security Advisory for xstream : ALAS2-2023-2007
  • 691028 Free Berkeley Software Distribution (FreeBSD) Security Update for security/keycloak (9d9e9439-959e-11ed-b464-b42e991fc52e)
  • 753873 SUSE Enterprise Linux Security Update for xstream (SUSE-SU-2023:1673-1)
  • 770196 Red Hat OpenShift Container Platform 4.10 Security Update (RHSA-2023:3625)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report