CVE-2017-7957 · mitre
CVE-2017-7957
XStream through 1.4.9, when a certain denyTypes workaround is not used, mishandles attempts to create an instance of the primitive type 'void' during unmarshalling, leading to a remote application crash, as demonstrated by an xstream.fromXML(" ") call.
Published 2017-04-29, last changed 2026-10-08. Weakness: CWE-20.
How to fix
Upgrade to a fixed version: com.thoughtworks.xstream:xstream 1.4.10 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in x-stream/xstream by 6e546ec366, 8542d02d9a, b3570be2f3. Functions changed by the fix: newInstance, allows, setupSecurity, setupConverters, unmarshal, addPermission, InitializationException, canConvert, marshal. Regression tests: xstream/src/test/com/thoughtworks/acceptance/SecurityVulnerabilityTest.java. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-04-29 | Published |
| 2020-06-30 | Package advisory GHSA-7hwc-46rm-65jh |
| 2026-10-08 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 4.93% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-7hwc-46rm-65jh | com.thoughtworks.xstream:xstream (Maven) | 1.4.10 |
Also known as: GHSA-7hwc-46rm-65jh
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2024-47072 | 2024-11-08 | 7.5 | XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream |
| CVE-2022-41966 | 2022-12-28 | 7.5 | XStream Denial of Service via stack overflow |
| CVE-2022-40151 | 2022-09-16 | 7.5 | Stack Buffer Overflow in xstream |
| CVE-2021-43859 | 2022-02-01 | 7.5 | Denial of Service by injecting highly recursive collections or maps in XStream |
| CVE-2021-39152 | 2021-08-23 | 8.5 | A Server-Side Forgery Request vulnerability in XStream via HashMap unmarshaling |
| CVE-2021-39150 | 2021-08-23 | 8.5 | A Server-Side Forgery Request vulnerability in XStream via PriorityQueue unmarshaling |
| CVE-2021-39140 | 2021-08-23 | 6.3 | XStream can cause a Denial of Service |
| CVE-2021-39154 | 2021-08-23 | 8.5 | XStream is vulnerable to an Arbitrary Code Execution attack |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-7957, or call /api/v1/vulnerabilities/CVE-2017-7957. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.