CVE-2020-26259
XStream is vulnerable to an Arbitrary File Deletion on the local host when unmarshalling
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, is vulnerable to an Arbitrary File Deletion on the local host when unmarshalling. The vulnerability may allow a remote attacker to delete arbitrary know files on the host as log as the executing process has sufficient rights 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 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 |
| xstream | xstream | 1.4.15 |
| libxstream-java | Ubuntu:Pro:14.04:LTS | 1.4.7-1ubuntu0.1+esm2 |
| struts | apache | 6.0.0 |
| libxstream-java | Ubuntu:20.04:LTS | 1.4.11.1-1ubuntu0.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)
- Nov 30, 2021 CVE Updated
- Feb 8, 2024 PoC Published
- Mar 6, 2026 Distribution Patch (14 in total, the first dated here)
- Mar 6, 2026 Security Advisory (17 in total, the first dated here)
- Sep 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-26259
vulnetix vdb fixes CVE-2020-26259
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-26259/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- [struts-commits] 20201221 [struts] branch master updated: Upgrades XStream to version 1.4.15 to address CVE-2020-26258, CVE-2020-26259 mailing-listx_refsource_MLIST
- [debian-lts-announce] 20201231 [SECURITY] [DLA 2507-1] libxstream-java security update mailing-listx_refsource_MLIST
- DSA-4828 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- FEDORA-2021-fbad11014a vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-d894ca87dc vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-5e376c0ed9 vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2020-26259 advisory