cve.bz

CVE-2020-26217 OS Command Injection

8.8 highExploit referenceEPSS 85%Fix available

High (8.8). EPSS 85% estimated probability of exploitation activity in the next 30 days. Fixed in com.thoughtworks.xstream:xstream 1.4.14-java7.

On this page
XStream before version 1.4.14 is vulnerable to Remote Code Execution.The vulnerability may allow a remote attacker to run arbitrary shell commands only by manipulating the processed input stream. Only users who rely on blocklists are affected. Anyone using XStream's Security Framework allowlist is not affected. The linked advisory provides code workarounds for users who cannot upgrade. The issue is fixed in version 1.4.14.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
85% (unchanged from 85% a week ago; 85% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-26217 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-26217?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-26217?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-2020-26217 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.

Badge for a README or a site

CVE-2020-26217

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2020-26217](https://cve.bz/cve/badge/CVE-2020-26217.svg)](https://cve.bz/cve/CVE-2020-26217)

HTML:

<a href="https://cve.bz/cve/CVE-2020-26217"><img src="https://cve.bz/cve/badge/CVE-2020-26217.svg" alt="CVE-2020-26217"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xstream:xstreambefore 1.4.14
debian:debian_linux9.0
debian:debian_linux10.0
apache:activemqbefore 5.15.14
apache:activemq5.16.0
oracle:banking_cash_management14.2
oracle:banking_cash_management14.3
oracle:banking_cash_management14.5
oracle:banking_corporate_lending_process_management14.2
oracle:banking_corporate_lending_process_management14.3
oracle:banking_corporate_lending_process_management14.5
oracle:banking_credit_facilities_process_management14.2
oracle:banking_credit_facilities_process_management14.3
oracle:banking_credit_facilities_process_management14.5
oracle:banking_platform2.4.0
oracle:banking_platform2.7.1
oracle:banking_platform2.9.0
oracle:banking_supply_chain_finance14.2
oracle:banking_supply_chain_finance14.3
oracle:banking_supply_chain_finance14.5
oracle:banking_trade_finance_process_management14.2
oracle:banking_trade_finance_process_management14.3
oracle:banking_trade_finance_process_management14.5
oracle:banking_virtual_account_management14.2.0
oracle:banking_virtual_account_management14.3.0
oracle:banking_virtual_account_management14.5.0
oracle:business_activity_monitoring11.1.1.9.0
oracle:business_activity_monitoring12.2.1.3.0
oracle:business_activity_monitoring12.2.1.4.0
oracle:communications_policy_management12.5.0
oracle:endeca_information_discovery_studio3.2.0.0
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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mw36-7c6c-q4q2Mavencom.thoughtworks.xstream:xstream<1.4.14-java71.4.14-java7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxstream-java1.4.9-2+deb9u1DLA-2471-1
Debian10libxstream-java1.4.11.1-1+deb10u1DSA-4811-1
Debian12, 13, 14libxstream-java1.4.14-1DEBIAN-CVE-2020-26217
Ubuntu18.04:LTSlibxstream-java1.4.11.1-1~18.04.1UBUNTU-CVE-2020-26217 USN-4714-1 USN-4943-1
Ubuntu20.04:LTSlibxstream-java1.4.11.1-1ubuntu0.1UBUNTU-CVE-2020-26217 USN-4714-1 USN-4943-1
UbuntuPro:14.04:LTSlibxstream-java1.4.7-1ubuntu0.1+esm2UBUNTU-CVE-2020-26217 USN-6978-1
UbuntuPro:16.04:LTSlibxstream-java1.4.8-1ubuntu0.1+esm3UBUNTU-CVE-2020-26217 USN-6978-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morexstream, xstream-javadoc0:1.3.1-12.el7_9RHSA-2021:0162
SUSELinux Enterprise Module for Development Tools 15 SP2xstream1.4.15-3.3.2SUSE-SU-2021:0176-1
SUSEManager Proxy Module 4.1spacewalk-proxy4.1.4-3.9.4SUSE-SU-2021:0906-1
SUSEManager Proxy Module 4.1spacewalk-proxy-installer4.1.6-3.3.2SUSE-SU-2021:0906-1
SUSEManager Proxy Module 4.1, Manager Server Module 4.1mgr-osad4.1.5-2.9.4SUSE-SU-2021:0906-1
SUSEManager Proxy Module 4.1, Manager Server Module 4.1rhnlib4.1.3-4.3.2SUSE-SU-2021:0906-1
SUSEManager Proxy Module 4.1, Manager Server Module 4.1spacewalk-backend4.1.21-4.22.7SUSE-SU-2021:0906-1
SUSEManager Proxy Module 4.1, Manager Server Module 4.1spacewalk-client-tools4.1.9-4.12.4SUSE-SU-2021:0906-1
SUSEManager Proxy Module 4.1, Manager Server Module 4.1spacewalk-web4.1.23-3.18.6SUSE-SU-2021:0906-1
SUSEManager Server Module 4.1cobbler3.0.0+git20190806.32c4bae0-5.6.4SUSE-SU-2021:0906-1
SUSEManager Server Module 4.1grafana-formula0.4.0-3.6.2SUSE-SU-2021:0906-1
SUSEManager Server Module 4.1mgr-libmod4.1.7-3.16.2SUSE-SU-2021:0906-1
SUSEManager Server Module 4.1prometheus-exporters-formula0.9.0-3.19.2SUSE-SU-2021:0906-1
14 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2xstream1.4.15-lp152.2.3.1openSUSE-SU-2021:0140-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

OpenShift Container Platform (OCP) delivers jenkins package with bundled XStream library. Due to JEP-200 Jenkins project [1] and advisory SECURITY-383 [2], OCP jenkins package is not affected by this flaw.

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

[2] https://www.jenkins.io/security/advisory/2017-02-01/ (see SECURITY-383 / CVE-2017-2608)

Red Hat's mitigation

Depending on the version of XStream used there are various usage patterns that mitigate this flaw, though we would strongly recommend using the allow list approach if at all possible as there are likely more class combinations the deny list approach may not address.

Allow list approach

```java

XStream xstream = new XStream();

XStream.setupDefaultSecurity(xstream);

xstream.allowTypesByWildcard(new String[] {"com.misc.classname"})

```

Deny list for XStream 1.4.13

```java

xstream.denyTypes(new String[]{ "javax.imageio.ImageIO$ContainsFilter" });

xstream.denyTypes(new Class[]{ java.lang.ProcessBuilder.class });

```

Deny list for XStream 1.4.7 -> 1.4.12

```java

xstream.denyTypes(new String[]{ "javax.imageio.ImageIO$ContainsFilter" });

xstream.denyTypes(new Class[]{ java.lang.ProcessBuilder.class, java.beans.EventHandler.class, java.lang.ProcessBuilder.class, java.lang.Void.class, void.class });

```

Deny list for versions prior to XStream 1.4.7

```java

xstream.registerConverter(new Converter() {

public boolean canConvert(Class type) {

return type != null && (type == java.beans.EventHandler.class || type == java.lang.ProcessBuilder.class || type == java.lang.Void.class || void.class || type.getName().equals("javax.imageio.ImageIO$ContainsFilter") || Proxy.isProxy(type));

}

public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {

throw new ConversionException("Unsupported type due to security reasons.");

}

public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {

throw new ConversionException("Unsupported type due to security reasons.");

}

}, XStream.PRIORITY_LOW);

```

ProductPackageStateAdvisory
Red Hat Data Grid 8.1.1xstreamFixed 2021-02-08RHSA-2021:0433
Red Hat Enterprise Linux 7xstream-0:1.3.1-12.el7_9Fixed 2021-01-18RHSA-2021:0162
Red Hat Fuse 7.10xstreamFixed 2021-12-14RHSA-2021:5134
Red Hat Fuse/AMQ 6.3.18xstreamFixed 2021-02-02RHSA-2021:0384
Red Hat IntegrationFixed 2021-08-18RHSA-2021:3205
Red Hat Integration Camel Quarkus 2Fixed 2021-11-23RHSA-2021:4767
RHDM 7.9.1xstreamFixed 2021-01-13RHSA-2021:0106
RHPAM 7.9.1xstreamFixed 2021-01-13RHSA-2021:0105
Red Hat BPM Suite 6xstreamOut of support scope
Red Hat Integration Camel K 1xstreamAffected
Red Hat Integration Camel Quarkus 1xstreamAffected
Red Hat JBoss BRMS 6xstreamOut of support scope
Red Hat JBoss Data Grid 7xstreamOut of support scope
Red Hat JBoss Fuse Service Works 6xstreamOut of support scope
Red Hat OpenShift Container Platform 3.11jenkinsNot affected
Red Hat OpenShift Container Platform 4jenkinsNot affected

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-2020-26217.

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.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

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

References

Check your stackJSON