CVE-2022-41966
published high CVSS 3.1 · 8.2XStream Denial of Service via stack overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| x-stream | — | xstream< 1.4.20 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2007 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP2 | xstreamnoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
| Debian | bullseye | libxstream-java | Advisory build | 1.4.15-3+deb11u2 | DSA-5315-1 |
| Ubuntu | bionic | libxstream-java | Advisory build | 1.4.11.1-1+deb10u4build0.18.04.1 | USN-5946-1 |
| Amazon Linux | AL2 | xstreamnoarch | Listed in advisory | Not stated | ALAS2-2023-2007 |
| SUSE / openSUSE | SLE-15-SP3 | xstreamnoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
| SUSE / openSUSE | SLE-15-SP4 | xstreamnoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
Show 26 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.4 | xstreamnoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreamaarch64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreamppc64le | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreams390x | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstreamx86_64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| Debian | buster | libxstream-java | Advisory build | 1.4.11.1-1+deb10u4 | DLA-3267-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xstream-benchmarknoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xstream-javadocnoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xstream-parentnoarch | Advisory build | 1.4.20-150200.3.25.1 | SUSE-SU-2023:1673-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarkaarch64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarkppc64le | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarks390x | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-benchmarkx86_64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocaarch64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocppc64le | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocs390x | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-javadocx86_64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parentaarch64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parentppc64le | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parents390x | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xstream-parentx86_64 | Advisory build | 1.4.20-1.1 | OPENSUSE-SU-2024:12796-1 |
| Ubuntu | esm | libxstream-java | Advisory build | 1.4.7-1ubuntu0.1+esm1 | USN-5946-1 |
| Ubuntu | focal | libxstream-java | Advisory build | 1.4.11.1-1ubuntu0.3 | USN-5946-1 |
| Ubuntu | jammy | libxstream-java | Advisory build | 1.4.18-2ubuntu0.1 | USN-5946-1 |
| Ubuntu | xenial | libxstream-java | Advisory build | 1.4.8-1ubuntu0.1+esm1 | USN-5946-1 |
| Amazon Linux | AL2 | xstreamsrc | Listed in advisory | Not stated | ALAS2-2023-2007 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| x-stream | xstream | < 1.4.20 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-120 CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
- CWE-121 CWE-121: Stack-based Buffer Overflow
- CWE-502 CWE-502: Deserialization of Untrusted Data
References
3Provider assertions
3GitHub_M · cna
XStream Denial of Service via stack overflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b68cc336c715f227c5ce74231fa320b05e8ceee7272b322cb116bb2df417bdf9
- Ingested
- 23 Sep 2026, 08:02:45 UTC
- Source record
- Official CVE record