OS Command Injection in com.thoughtworks.xstream:xstream (CVE-2020-26259)
Summary
OS command injection in com.thoughtworks.xstream:xstream (CVE-2020-26259). Data can be tampered with by attackers. Mitigation: upgrade to 1.4.15 or later.
Original description
The description as published by the source.
Impact
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.
Patches
If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.15.
Workarounds
The reported vulnerability does only exist with a JAX-WS runtime on the classpath.
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 insist to use XStream default blacklist - despite that clear recommendation - can use a workaround depending on their version in use.
Users of XStream 1.4.14 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.14 to 1.4.13 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\\$File…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2020-26259 has been found in com.thoughtworks.xstream:xstream.
Data can be tampered with by attackers. CVSS score: 6.8/10.
What to do: upgrade com.thoughtworks.xstream:xstream to 1.4.15 or later.
If unsure, ask your IT team or search "com.thoughtworks.xstream:xstream CVE-2020-26259" on the vendor's site.
CVE-2020-26259 (com.thoughtworks.xstream:xstream) — CWE-78 / CVSS v3 6.8
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 1.4.15 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
OS command injection (CWE-78) exists in com.thoughtworks.xstream:xstream.
Check the vendor advisory for the affected versions of com.thoughtworks.xstream:xstream.
Severity: Medium (CVSS 6.8/10). Data can be tampered with by attackers.
Update to 1.4.15.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで com.thoughtworks.xstream:xstream を使っているサービスとバージョンを洗い出す。
-
2Apply patch patch
Upgrade com.thoughtworks.xstream:xstream to 1.4.15ステージング環境で 1.4.15 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory github.com
- advisory lists.debian.org
- advisory security.netapp.com
- advisory debian.org
- advisory nvd.nist.gov
- exploit x-stream.github.io
- mailing lists.apache.org
- mailing lists.fedoraproject.org
- mailing lists.fedoraproject.org
- mailing lists.fedoraproject.org
- package github.com
- web lists.apache.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web security.netapp.com