CVE-2022-40151
HIGH 7.5CVSS 3.1XStream can cause a Denial of Service by injecting deeply nested objects raising a stack overflow
Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.
- Published
- 16 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Analyzed
- Weakness
- CWE-121CWE-502CWE-787
- Also known as
- GHSA-f8cc-g7j8-xxpm
- Sources
- NVDJSONOSV GHSA-f8cc-g7j8-xxpmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | cve-coordination@google.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xstream | xstreamcpe:2.3:a:xstream:xstream:*:*:*:*:*:*:*:* |
< 1.4.20 | 1.4.20 |
| OSV | Maven | com.thoughtworks.xstream:xstream | < 1.4.20 | 1.4.20 |
References
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47367 · Exploit, Permissions Required, Third Party Advisory, WEB
- https://github.com/x-stream/xstream/issues/304 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/x-stream/xstream/security/advisories/GHSA-f8cc-g7j8-xxpm · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-40151 · ADVISORY
- https://github.com/x-stream/xstream/issues/314 · WEB
- https://github.com/x-stream/xstream · PACKAGE
- https://x-stream.github.io/CVE-2022-40151.html · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 16 Sep 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 30 Dec 2022)