cve.bz

CVE-2020-26258 SSRF

7.7 highExploit referenceEPSS 82%Fix available

High (7.7). EPSS 82% estimated probability of exploitation activity in the next 30 days. Fixed in com.thoughtworks.xstream:xstream 1.4.15.

On this page
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.15, a Server-Side Forgery Request vulnerability can be activated when unmarshalling. The vulnerability may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.15. The reported vulnerability does not exist if running Java 15 or higher. No user is affected who followed the recommendation to setup XStream's Security Framework with a whitelist! Anyone relying on XStream's default blacklist can immediately switch to a whilelist for the allowed types to avoid the vulnerability. Users of XStream 1.4.14 or below who still want to use XStream default blacklist can use a workaround described in more detailed in the referenced advisories.

Severity

CVSS 3.1

7.7 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS
82% (unchanged from 82% a week ago; 82% 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: partial, 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-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
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-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.

Badge for a README or a site

CVE-2020-26258

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-26258](https://cve.bz/cve/badge/CVE-2020-26258.svg)](https://cve.bz/cve/CVE-2020-26258)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:strutsbefore 6.0.0
xstream:xstreambefore 1.4.15
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora33
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4cch-wxpw-8p28Mavencom.thoughtworks.xstream:xstream<1.4.151.4.15

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxstream-java1.4.11.1-1+deb9u1DLA-2507-1
Debian10libxstream-java1.4.11.1-1+deb10u2DSA-4828-1
Debian12, 13, 14libxstream-java1.4.15-1DEBIAN-CVE-2020-26258
Ubuntu18.04:LTSlibxstream-java1.4.11.1-1~18.04.1UBUNTU-CVE-2020-26258 USN-4714-1 USN-4943-1
Ubuntu20.04:LTSlibxstream-java1.4.11.1-1ubuntu0.1UBUNTU-CVE-2020-26258 USN-4714-1 USN-4943-1
UbuntuPro:14.04:LTSlibxstream-java1.4.7-1ubuntu0.1+esm2UBUNTU-CVE-2020-26258 USN-6978-1
UbuntuPro:16.04:LTSlibxstream-java1.4.8-1ubuntu0.1+esm3UBUNTU-CVE-2020-26258 USN-6978-1
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; 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

Red Hat rates this Moderate.

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

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);

ProductPackageStateAdvisory
Red Hat Data Grid 8.2.0xstreamFixed 2021-05-26RHSA-2021:2139
Red Hat Fuse 7.9xstreamFixed 2021-08-11RHSA-2021:3140
Red Hat IntegrationFixed 2021-08-18RHSA-2021:3205
Red Hat Integration Camel Quarkus 2Fixed 2021-11-23RHSA-2021:4767
RHDM 7.11.0xstreamFixed 2021-06-17RHSA-2021:2476
RHPAM 7.11.0xstreamFixed 2021-06-17RHSA-2021:2475
Red Hat BPM Suite 6xstreamOut of support scope
Red Hat Enterprise Linux 7xstreamOut of support scope
Red Hat Integration Camel K 1xstreamAffected
Red Hat Integration Camel Quarkus 1xstreamAffected
Red Hat JBoss A-MQ 6xstreamOut of support scope
Red Hat JBoss BRMS 6xstreamOut of support scope
Red Hat JBoss Data Grid 7xstreamOut of support scope
Red Hat JBoss Data Virtualization 6xstreamOut of support scope
Red Hat JBoss Fuse 6xstreamOut of support scope
Red Hat JBoss Fuse Service Works 6xstreamOut of support scope
Red Hat JBoss SOA Platform 5xstreamOut 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-26258.

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-664 Server Side Request Forgery Likelihood: High · Severity: High

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

References

Check your stackJSON