CVE-2021-39144: XStream is vulnerable to a Remote Command Execution attack

CVE-2021-39144 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2021-08-25

XStream is vulnerable to Remote Code Execution (RCE) via unsafe deserialization of untrusted data. An attacker can manipulate the processed XML input stream to inject objects that execute arbitrary local commands on the server, particularly when XStream's security framework is not configured with a strict whitelist.

Technologies: com.thoughtworks.xstream:xstream (Maven). Vendors: Maven.

Quick answers

Is CVE-2021-39144 exploited in the wild?
Yes. CVE-2021-39144 is known to be exploited in the wild, first recorded on 10 March 2023. Treat it as urgent.
How severe is CVE-2021-39144?
Critical 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-39144?
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.
How is CVE-2021-39144 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2021-39144?
Check whether you run com.thoughtworks.xstream:xstream (Maven) or XStream 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
    # set com.thoughtworks.xstream:xstream to 1.4.18 in your pom.xml or build.gradle

Affected products

  • XStream Project XStream versions prior to 1.4.18
  • VMware Cloud Foundation
  • VMware NSX Manager

Identifiers

  • CVE-2021-39144
  • GHSA-j9h8-phrw-h4fh

Timeline

  • 2021-08-22: disclosed: Initial vulnerability disclosure and XStream 1.4.18 release
  • 2023-03-10: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
  • 2023-03-10: exploited: Confirmed active exploitation in the wild

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.