# CVE-2021-39154: XStream is vulnerable to an Arbitrary Code Execution attack

Source: https://junglewise.ai/threats/cve-2021-39154-xstream-is-vulnerable-to-an-arbitrary-code-execution-attack  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-08-25  
License: CC BY 4.0 with a link back

CVE-2021-39154 · Severity: low · CVSS 3.1 · Published 2021-08-25

XStream is vulnerable to an Arbitrary Code Execution attack

Technologies: [com.thoughtworks.xstream:xstream (Maven)](https://junglewise.ai/threats/technologies/com-thoughtworks-xstream-xstream). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-39154 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-39154 being exploited in the wild.

**How severe is CVE-2021-39154?** Low severity, with a CVSS score of 3.1, published 25 August 2021.

**Which products and versions are affected?** com.thoughtworks.xstream:xstream (Maven) ECOSYSTEM:introduced=0,fixed=1.4.18.

**Is there a fix for CVE-2021-39154?** Yes. com.thoughtworks.xstream:xstream (Maven): upgrade to 1.4.18 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-39154?** Check whether you run com.thoughtworks.xstream:xstream (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.thoughtworks.xstream:xstream (Maven): upgrade to 1.4.18 or later

  ```sh
  # set com.thoughtworks.xstream:xstream to 1.4.18 in your pom.xml or build.gradle
  ```


## Affected products

- com.thoughtworks.xstream:xstream (Maven) ECOSYSTEM:introduced=0,fixed=1.4.18

## Identifiers

- CVE-2021-39154
- GHSA-6w62-hx7r-mw68

## Related threats

- [XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream](https://junglewise.ai/threats/cve-2024-47072-xstream-is-vulnerable-to-a-denial-of-service-attack-due-to-stack)
- [XStream can cause a Denial of Service by injecting deeply nested objects raising a stack overflow](https://junglewise.ai/threats/cve-2022-40151-xstream-can-cause-a-denial-of-service-by-injecting-deeply-nested)
- [XStream can cause Denial of Service via stack overflow](https://junglewise.ai/threats/cve-2022-41966-xstream-can-cause-denial-of-service-via-stack-overflow)
- [Duplicate Advisory: Denial of Service due to parser crash](https://junglewise.ai/threats/duplicate-advisory-denial-of-service-due-to-parser-crash-92e16523)
- [Denial of Service by injecting highly recursive collections or maps in XStream](https://junglewise.ai/threats/cve-2021-43859-denial-of-service-by-injecting-highly-recursive-collections-or)
