{"id":"CVE-2021-39146","published":"2021-08-23T18:05:28Z","modified":"2026-10-07T20:02:52Z","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.143,"percentile":0.96687,"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-p8pq-r894-fm8f","tags":["x_refsource_CONFIRM"]},{"url":"https://x-stream.github.io/CVE-2021-39146.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.3,"factors":[{"name":"EPSS percentile","points":19.34},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.95}]},"exploitSources":{"nuclei":[{"id":"CVE-2021-39146","name":"XStream 1.4.18 - Arbitrary Code Execution","severity":"high","path":"http/cves/2021/CVE-2021-39146.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39146.yaml"}],"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:02:42.533474Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.thoughtworks.xstream:xstream","vulnerableRanges":["<1.4.18"],"patched":["1.4.18"],"from":["GHSA-p8pq-r894-fm8f"],"provenance":"source"}],"summary":{"text":"The XStream library (product \"xstream\" from vendor x-stream), which serializes objects to XML and back, contains a flaw in its deserialization handling that allows arbitrary code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:33:48Z"},"euvd":{"id":"EUVD-2021-1813","exploited":false,"provenance":"source"}}