CVSS 3.1
7.7 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NHigh (7.7). EPSS 82% estimated probability of exploitation activity in the next 30 days. Fixed in com.thoughtworks.xstream:xstream 1.4.15.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:Ncom.thoughtworks.xstream:xstream (Maven): fixed in 1.4.15Explain CVE-2020-26258 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-26258?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-26258?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-26258 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| apache:struts | before 6.0.0 |
| xstream:xstream | before 1.4.15 |
| debian:debian_linux | 9.0 |
| debian:debian_linux | 10.0 |
| fedoraproject:fedora | 33 |
| fedoraproject:fedora | 34 |
| fedoraproject:fedora | 35 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-4cch-wxpw-8p28 | Maven | com.thoughtworks.xstream:xstream | <1.4.15 | 1.4.15 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | libxstream-java | 1.4.11.1-1+deb9u1 | DLA-2507-1 |
| Debian | 10 | libxstream-java | 1.4.11.1-1+deb10u2 | DSA-4828-1 |
| Debian | 12, 13, 14 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26258 |
| Ubuntu | 18.04:LTS | libxstream-java | 1.4.11.1-1~18.04.1 | UBUNTU-CVE-2020-26258 USN-4714-1 USN-4943-1 |
| Ubuntu | 20.04:LTS | libxstream-java | 1.4.11.1-1ubuntu0.1 | UBUNTU-CVE-2020-26258 USN-4714-1 USN-4943-1 |
| Ubuntu | Pro:14.04:LTS | libxstream-java | 1.4.7-1ubuntu0.1+esm2 | UBUNTU-CVE-2020-26258 USN-6978-1 |
| Ubuntu | Pro:16.04:LTS | libxstream-java | 1.4.8-1ubuntu0.1+esm3 | UBUNTU-CVE-2020-26258 USN-6978-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP2 | xstream | 1.4.15-3.3.2 | SUSE-SU-2021:0176-1 |
| SUSE | Manager Proxy Module 4.1 | spacewalk-proxy | 4.1.4-3.9.4 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Proxy Module 4.1 | spacewalk-proxy-installer | 4.1.6-3.3.2 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Proxy Module 4.1, Manager Server Module 4.1 | mgr-osad | 4.1.5-2.9.4 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Proxy Module 4.1, Manager Server Module 4.1 | rhnlib | 4.1.3-4.3.2 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Proxy Module 4.1, Manager Server Module 4.1 | spacewalk-backend | 4.1.21-4.22.7 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Proxy Module 4.1, Manager Server Module 4.1 | spacewalk-client-tools | 4.1.9-4.12.4 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Proxy Module 4.1, Manager Server Module 4.1 | spacewalk-web | 4.1.23-3.18.6 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Server Module 4.1 | cobbler | 3.0.0+git20190806.32c4bae0-5.6.4 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Server Module 4.1 | grafana-formula | 0.4.0-3.6.2 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Server Module 4.1 | mgr-libmod | 4.1.7-3.16.2 | SUSE-SU-2021:0906-1 |
| SUSE | Manager Server Module 4.1 | prometheus-exporters-formula | 0.9.0-3.19.2 | SUSE-SU-2021:0906-1 |
| 14 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.2 | xstream | 1.4.15-lp152.2.3.1 | openSUSE-SU-2021:0140-1 |
| openSUSE | Tumbleweed | xstream | 1.4.18-1.1 | openSUSE-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; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Moderate.
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)
As recommended, use XStream's security framework to implement a whitelist for the allowed types.
Users of XStream 1.4.14 who insist to use XStream default blacklist - despite that clear recommendation - can simply add two lines to XStream's setup code:
xstream.denyTypes(new String[]{ "jdk.nashorn.internal.objects.NativeString" });
xstream.denyTypesByRegExp(new String[]{ ".*\\.ReadAllStream\\$FileStream" });
Users of XStream 1.4.13 who want to use XStream default blacklist can simply add three lines to XStream's setup code:
xstream.denyTypes(new String[]{ "javax.imageio.ImageIO$ContainsFilter", "jdk.nashorn.internal.objects.NativeString" });
xstream.denyTypes(new Class[]{ java.lang.ProcessBuilder.class });
xstream.denyTypesByRegExp(new String[]{ ".*\\.ReadAllStream\\$FileStream" });
Users of XStream 1.4.12 to 1.4.7 who want to use XStream with a blacklist will have to setup such a list from scratch and deny at least the following types: javax.imageio.ImageIO$ContainsFilter, java.beans.EventHandler, java.lang.ProcessBuilder, jdk.nashorn.internal.objects.NativeString, java.lang.Void and void and deny several types by name pattern.
xstream.denyTypes(new String[]{ "javax.imageio.ImageIO$ContainsFilter", "jdk.nashorn.internal.objects.NativeString" });
xstream.denyTypes(new Class[]{ java.lang.ProcessBuilder.class, java.beans.EventHandler.class, java.lang.ProcessBuilder.class, java.lang.Void.class, void.class });
xstream.denyTypesByRegExp(new String[]{ ".*\\$LazyIterator", "javax\\.crypto\\..*", ".*\\.ReadAllStream\\$FileStream" });
Users of XStream 1.4.6 or below can register an own converter to prevent the unmarshalling of the currently know critical types of the Java runtime. It is in fact an updated version of the workaround for CVE-2013-7285:
xstream.registerConverter(new Converter() {
public boolean canConvert(Class type) {
return type != null && (type == java.beans.EventHandler.class || type == java.lang.ProcessBuilder.class
|| type.getName().equals("javax.imageio.ImageIO$ContainsFilter") || type.getName().equals("jdk.nashorn.internal.objects.NativeString")
|| type == java.lang.Void.class || void.class || Proxy.isProxy(type)
|| type.getName().startsWith("javax.crypto.") || type.getName().endsWith("$LazyIterator") || type.getName().endsWith(".ReadAllStream$FileStream"));
}
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);
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Data Grid 8.2.0 | xstream | Fixed 2021-05-26 | RHSA-2021:2139 |
| Red Hat Fuse 7.9 | xstream | Fixed 2021-08-11 | RHSA-2021:3140 |
| Red Hat Integration | Fixed 2021-08-18 | RHSA-2021:3205 | |
| Red Hat Integration Camel Quarkus 2 | Fixed 2021-11-23 | RHSA-2021:4767 | |
| RHDM 7.11.0 | xstream | Fixed 2021-06-17 | RHSA-2021:2476 |
| RHPAM 7.11.0 | xstream | Fixed 2021-06-17 | RHSA-2021:2475 |
| Red Hat BPM Suite 6 | xstream | Out of support scope | |
| Red Hat Enterprise Linux 7 | xstream | Out of support scope | |
| Red Hat Integration Camel K 1 | xstream | Affected | |
| Red Hat Integration Camel Quarkus 1 | xstream | Affected | |
| Red Hat JBoss A-MQ 6 | xstream | Out of support scope | |
| Red Hat JBoss BRMS 6 | xstream | Out of support scope | |
| Red Hat JBoss Data Grid 7 | xstream | Out of support scope | |
| Red Hat JBoss Data Virtualization 6 | xstream | Out of support scope | |
| Red Hat JBoss Fuse 6 | xstream | Out of support scope | |
| Red Hat JBoss Fuse Service Works 6 | xstream | Out of support scope | |
| Red Hat JBoss SOA Platform 5 | xstream | Out of support scope | |
| Red Hat OpenShift Container Platform 3.11 | jenkins | Not affected | |
| Red Hat OpenShift Container Platform 4 | jenkins | Not 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-26258.
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.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.