CVE-2022-41966
Summary
| CVE | CVE-2022-41966 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-12-28 00:15:00 UTC |
| Updated | 2023-06-27 14:04:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| 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 |
No vendor comments have been submitted for this CVE.
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)