Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.thoughtworks.xstream/xstream
  4. ›
  5. CVE-2021-29505

CVE-2021-29505: XStream is vulnerable to a Remote Command Execution attack

May 18, 2021 (updated May 30, 2025)

XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream may allow a remote attacker who has sufficient rights to execute commands of the host only by manipulating the processed input stream.

References

  • github.com/advisories/GHSA-7chv-rrw6-w6fc
  • github.com/x-stream/xstream
  • github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624f
  • github.com/x-stream/xstream/commit/f0c4a8d861b68ffc3119cfbbbd632deee624e227
  • github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fc
  • lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f%40%3Cdev.jmeter.apache.org%3E
  • lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f@%3Cdev.jmeter.apache.org%3E
  • lists.debian.org/debian-lts-announce/2021/07/msg00004.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
  • nvd.nist.gov/vuln/detail/CVE-2021-29505
  • security.netapp.com/advisory/ntap-20210708-0007
  • www.debian.org/security/2021/dsa-5004
  • www.oracle.com/security-alerts/cpuapr2022.html
  • www.oracle.com/security-alerts/cpujan2022.html
  • www.oracle.com/security-alerts/cpujul2022.html
  • www.oracle.com/security-alerts/cpuoct2021.html
  • x-stream.github.io/CVE-2021-29505.html

Code Behaviors & Features

Detect and mitigate CVE-2021-29505 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.17

Fixed versions

  • 1.4.17

Solution

Upgrade to version 1.4.17 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

maven/com.thoughtworks.xstream/xstream/CVE-2021-29505.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.