Skip to content
Medium 6.5

Unsafe Deserialization in com.thoughtworks.xstream:xstream

CVE-2021-39140 First seen on SecPulse

Summary

Vulnerability in com.thoughtworks.xstream:xstream (CVE-2021-39140). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to 1.4.18 or later.

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-2021-39140 has been found in com.thoughtworks.xstream:xstream.
Risk of unauthorized operations or information disclosure. CVSS score: 6.5/10.
What to do: upgrade com.thoughtworks.xstream:xstream to 1.4.18 or later.
If unsure, ask your IT team or search "com.thoughtworks.xstream:xstream CVE-2021-39140" on the vendor's site.

CVE-2021-39140 (com.thoughtworks.xstream:xstream) — CWE-502 / CVSS v3 6.5
Attack vector: remote (network-reachable) / no user interaction
Patched: 1.4.18 — apply immediately
Workaround: See workarounds for the different versions covering all CVEs.
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.

What is the problem

Unsafe deserialization (CWE-502) exists in com.thoughtworks.xstream:xstream.

Affected scope

Check the vendor advisory for the affected versions of com.thoughtworks.xstream:xstream.

Severity

Severity: Medium (CVSS 6.5/10). Risk of unauthorized operations or information disclosure.

How to fix

Update to 1.4.18.

Workaround

Workaround: See workarounds for the different versions covering all CVEs.

Detection

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

  1. 1
    Identify exposureidentify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで com.thoughtworks.xstream:xstream を使っているサービスとバージョンを洗い出す。

  2. 2
    Apply temporary workaroundmitigate
    See [workarounds](https://x-stream.github.io/security.html#workaround) for the different versions covering all CVEs.

    パッチが適用されるまでの応急処置として、See workarounds for the different versions covering all CVEs. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patchpatch
    Upgrade com.thoughtworks.xstream:xstream to 1.4.18

    ステージング環境で 1.4.18 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
Mavencom.thoughtworks.xstream:xstream
< 1.4.18→ 1.4.18

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details