cve.bz

CVE-2021-39144 XStream Remote Code Execution Vulnerability

8.5 highKEVExploitEPSS 98%Fix available

High (8.5) in XStream XStream. In CISA KEV since 2023-03-10. EPSS 98% estimated probability of exploitation activity in the next 30 days. Fixed in com.thoughtworks.xstream:xstream 1.4.18.

On this page
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

Severity

CVSS 3.1

8.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
98% (unchanged from 98% a week ago; 98% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2023-03-10, due 2023-03-31
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-306 Missing Authentication for Critical Functionality
CWE-502 Deserialization of Untrusted Data
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection, A07:2025 Authentication Failures, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-39144 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-39144?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-39144?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-39144 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xstream:xstreambefore 1.4.18
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
fedoraproject:fedora33
fedoraproject:fedora34
fedoraproject:fedora35
oracle:business_activity_monitoring12.2.1.4.0
oracle:commerce_guided_search11.3.2
oracle:communications_billing_and_revenue_management_elastic_charging_engine11.3
oracle:communications_billing_and_revenue_management_elastic_charging_engine12.0
oracle:communications_cloud_native_core_automated_test_suite1.9.0
oracle:communications_cloud_native_core_binding_support_function1.10.0
oracle:communications_cloud_native_core_policy1.14.0
oracle:communications_unified_inventory_management7.3.4
oracle:communications_unified_inventory_management7.3.5
oracle:communications_unified_inventory_management7.4.0
oracle:communications_unified_inventory_management7.4.1
oracle:communications_unified_inventory_management7.4.2
oracle:retail_xstore_point_of_service16.0.6
oracle:retail_xstore_point_of_service17.0.4
oracle:retail_xstore_point_of_service18.0.3
oracle:retail_xstore_point_of_service19.0.2
oracle:retail_xstore_point_of_service20.0.1
oracle:utilities_framework4.2.0.2.0
oracle:utilities_framework4.2.0.3.0
oracle:utilities_framework4.3.0.1.0
oracle:utilities_framework4.3.0.6.0
oracle:utilities_framework4.4.0.0.0
oracle:utilities_framework4.4.0.2.0
oracle:utilities_framework4.4.0.3.0
oracle:utilities_testing_accelerator6.0.0.1.1
oracle:webcenter_portal12.2.1.3.0
oracle:webcenter_portal12.2.1.4.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j9h8-phrw-h4fhMavencom.thoughtworks.xstream:xstream<1.4.181.4.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxstream-java1.4.11.1-1+deb9u4DLA-2769-1
Debian10libxstream-java1.4.11.1-1+deb10u3DSA-5004-1
Debian11libxstream-java1.4.15-3+deb11u1DSA-5004-1
Debian12, 13, 14libxstream-java1.4.18-1DEBIAN-CVE-2021-39144
Ubuntu18.04:LTSlibxstream-java1.4.11.1-1+deb10u4build0.18.04.1UBUNTU-CVE-2021-39144 USN-5946-1
Ubuntu20.04:LTSlibxstream-java1.4.11.1-1ubuntu0.3UBUNTU-CVE-2021-39144 USN-5946-1
Ubuntu22.04:LTSlibxstream-java1.4.18-2ubuntu0.1USN-5946-1
UbuntuPro:14.04:LTSlibxstream-java1.4.7-1ubuntu0.1+esm1USN-5946-1
UbuntuPro:16.04:LTSlibxstream-java1.4.8-1ubuntu0.1+esm1USN-5946-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morexstream, xstream-javadoc0:1.3.1-16.el7_9RHSA-2021:3956
SUSELinux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3, Manager Server Module 4.1 and 1 morexstream1.4.18-3.14.1SUSE-SU-2021:3476-1
openSUSELeap 15.2xstream1.4.18-lp152.2.12.1openSUSE-SU-2021:1401-1
openSUSELeap 15.3xstream1.4.18-3.14.1openSUSE-SU-2021:3476-1
openSUSETumbleweedxstream1.4.18-1.1openSUSE-SU-2024:10592-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Users who follow the recommended security framework with a whitelist to limit the types to the minimum required should not be affected. XStream 1.4.18 no longer uses a blacklist by default since it cannot be secured for general purposes.

OpenShift Container Platform (OCP) delivers Jenkins LTS package with bundled XStream library. Due to JEP-200 [1] and JEP-228 [2] Jenkins projects, OCP Jenkins package is not affected by this flaw.

This version of XStream library will be delivered in future Jenkins releases.

[1] https://github.com/jenkinsci/jep/blob/master/jep/200/README.adoc

[2] https://github.com/jenkinsci/jep/blob/master/jep/228/README.adoc#security

For more information, please refer to the [Red Hat solution Article](https://access.redhat.com/solutions/7002450) explaining this issue.

OpenShift Logging's Elasticsearch 6.8.1 using opendistro_security v0.10.1.2 is not affected by the vulnerable code because com.thoughtworks.xstream is only a build-time dependency.

ProductPackageStateAdvisory
Red Hat Data Grid 7.3.10xstreamFixed 2023-03-17RHSA-2023:1303
Red Hat Data Grid 8.3.0xstreamFixed 2022-02-14RHSA-2022:0520
Red Hat Enterprise Linux 7xstream-0:1.3.1-16.el7_9Fixed 2021-10-25RHSA-2021:3956
Red Hat IntegrationxstreamFixed 2021-12-02RHSA-2021:4918
Red Hat Integration Camel Quarkus 2Fixed 2021-11-23RHSA-2021:4767
Red Hat Single Sign-On 7rh-sso7-keycloakFixed 2023-06-27RHSA-2023:3892
RHDM 7.12.0xstreamFixed 2022-01-26RHSA-2022:0297
RHPAM 7.12.0xstreamFixed 2022-01-26RHSA-2022:0296
A-MQ Clients 2xstreamNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Migration Toolkit for Applications 6org.keycloak-keycloak-parentNot affected
Migration Toolkit for Runtimesorg.keycloak-keycloak-parentNot affected
OpenShift Developer Tools and ServicesjenkinsNot affected
Red Hat AMQ Broker 7xstreamNot affected
Red Hat BPM Suite 6xstreamOut of support scope
Red Hat build of Apache Camel for Spring Boot 3xstreamNot affected
Red Hat build of Apicurio Registry 2xstreamNot affected
Red Hat build of Debezium 1xstreamNot affected
Red Hat build of QuarkusxstreamNot affected
Red Hat Fuse 7xstreamNot affected
14 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-39144.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template XStream 1.4.18 - Remote Code Execution
  • Emerging Threats Open ET EXPLOIT Possible VMWare NSX Manager Remote Code Execution Exploit Attempt (CVE-2021-39144) sid 2039596

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High
  • CAPEC-12 Choosing Message Identifier Likelihood: High · Severity: High
  • CAPEC-36 Using Unpublished Interfaces or Functionality Likelihood: Medium · Severity: High
  • CAPEC-62 Cross Site Request Forgery Likelihood: High · Severity: Very High
  • CAPEC-166 Force the System to Reset Values Severity: Medium
  • CAPEC-216 Communication Channel Manipulation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON