CVE-2020-26258
Server-Side Forgery Request can be activated unmarshalling with XStream
Reported by github_m · Published December 16, 2020
xstream is fixed in 1.4.15 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| com.thoughtworks.xstream:xstream | Maven Central | 1.4.15 |
| libxstream-java | Ubuntu:Pro:14.04:LTS | 1.4.7-1ubuntu0.1+esm2 |
| libxstream-java | Ubuntu:20.04:LTS | 1.4.11.1-1ubuntu0.1 |
| struts | apache | 6.0.0 |
| xstream | xstream | 1.4.15 |
| libxstream-java | Ubuntu:18.04:LTS | 1.4.11.1-1~18.04.1 |
| libxstream-java | Ubuntu:Pro:16.04:LTS | 1.4.8-1ubuntu0.1+esm3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| x-stream | xstream | < 1.4.15 |
| Maven | com.thoughtworks.xstream:xstream | 0 |
| x-stream | xstream | 0 |
Timeline
- Dec 16, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Mar 6, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 in total, the first dated here)
- Sep 1, 2026 Coalition ESS Score
- Oct 7, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-26258
vulnetix vdb fixes CVE-2020-26258
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-26258/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-4cch-wxpw-8p28 x_refsource_CONFIRM
- https://lists.apache.org/thread.html/r97993e3d78e1f5389b7b172ba9f308440830ce5f051ee62714a0aa34@%3Ccommits.struts.apache.org%3E x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2020/12/msg00042.html x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210409-0005 x_refsource_MISC
- https://www.debian.org/security/2021/dsa-4828 x_refsource_MISC
- https://x-stream.github.io/CVE-2020-26258.html x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-26258 advisory
- https://github.com/advisories/GHSA-4cch-wxpw-8p28 advisory
- https://github.com/x-stream/xstream url
- [struts-commits] 20201221 [struts] branch master updated: Upgrades XStream to version 1.4.15 to address CVE-2020-26258, CVE-2020-26259 mailing-list
- https://security.netapp.com/advisory/ntap-20210409-0005/ url
- FEDORA-2021-fbad11014a vendor-advisory
- FEDORA-2021-d894ca87dc vendor-advisory
- FEDORA-2021-5e376c0ed9 vendor-advisory