{"id":"CVE-2021-39141","published":"2021-08-23T18:05:11Z","modified":"2026-10-07T20:05:41Z","title":"XStream is vulnerable to an Arbitrary Code Execution attack","vendor":"x-stream","product":"xstream","tier":"tail","description":{"text":"XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.16118,"percentile":0.97001,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/x-stream/xstream/security/advisories/GHSA-g5w6-mrj7-75h2","tags":["x_refsource_CONFIRM"]},{"url":"https://x-stream.github.io/CVE-2021-39141.html","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.debian.org/security/2021/dsa-5004","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210923-0003/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":30.4,"factors":[{"name":"EPSS percentile","points":19.4},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.95}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-08-24","earliestUrl":"https://github.com/zwjjustdoit/Xstream-1.4.17","repos":[{"name":"zwjjustdoit/Xstream-1.4.17","url":"https://github.com/zwjjustdoit/Xstream-1.4.17","stars":62,"created":"2021-08-24"}]},"nuclei":[{"id":"CVE-2021-39141","name":"XStream 1.4.18 - Remote Code Execution","severity":"high","path":"http/cves/2021/CVE-2021-39141.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39141.yaml"}],"first":{"date":"2021-08-24","source":"PoC-in-GitHub","url":"https://github.com/zwjjustdoit/Xstream-1.4.17"},"provenance":"source"},"vendorSlug":"x-stream","affectedVersions":[{"vendor":"x-stream","product":"xstream","versions":["< 1.4.18"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-07T20:05:29.447444Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.thoughtworks.xstream:xstream","vulnerableRanges":["<1.4.18"],"patched":["1.4.18"],"from":["GHSA-g5w6-mrj7-75h2"],"provenance":"source"}],"summary":{"text":"The XStream library (product \"xstream\", vendor x-stream) contains a flaw that lets its XML serialization and deserialization handling process untrusted input in a way that leads to arbitrary code execution. A remote attacker who can supply a crafted input stream can cause the library to load and execute code from a remote host, with the attack complexity rated high and only low privileges required; users who configured XStream's security framework with a whitelist of minimal required types are not affected, and XStream 1.4.18 no longer uses a blacklist by default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:33:38Z"},"euvd":{"id":"EUVD-2021-1714","exploited":false,"provenance":"source"}}