{"id":"GHSA-p8pq-r894-fm8f","summary":"XStream is vulnerable to an Arbitrary Code Execution attack","details":"### Impact\nThe 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.\n\n### Patches\nXStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.\n\n### Workarounds\nSee [workarounds](https://x-stream.github.io/security.html#workaround) for the different versions covering all CVEs.\n\n### References\nSee full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for [CVE-2021-39146](https://x-stream.github.io/CVE-2021-39146.html).\n\n### Credits\nCeclin and YXXX from the Tencent Security Response Center found and reported the issue to XStream and provided the required information to reproduce it.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [XStream](https://github.com/x-stream/xstream/issues)\n* Contact us at [XStream Google Group](https://groups.google.com/group/xstream-user)\n","aliases":["CVE-2021-39146"],"modified":"2026-07-08T06:28:59.637179040Z","published":"2021-08-25T14:47:57Z","database_specific":{"github_reviewed":true,"nvd_published_at":"2021-08-23T18:15:00Z","severity":"HIGH","cwe_ids":["CWE-502"],"github_reviewed_at":"2021-08-23T18:22:13Z"},"references":[{"type":"WEB","url":"https://github.com/x-stream/xstream/security/advisories/GHSA-p8pq-r894-fm8f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39146"},{"type":"PACKAGE","url":"https://github.com/x-stream/xstream"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210923-0003"},{"type":"WEB","url":"https://www.debian.org/security/2021/dsa-5004"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujan2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"WEB","url":"https://x-stream.github.io/CVE-2021-39146.html"}],"affected":[{"package":{"name":"com.thoughtworks.xstream:xstream","ecosystem":"Maven","purl":"pkg:maven/com.thoughtworks.xstream/xstream"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.18"}]}],"versions":["0.1","0.2","0.3","0.5","0.6","1.0","1.0.1","1.0.2","1.1","1.1.1","1.1.2","1.1.3","1.2","1.2.1","1.2.2","1.3","1.3.1","1.4","1.4.1","1.4.10","1.4.10-java7","1.4.11","1.4.11-java7","1.4.11.1","1.4.12","1.4.12-java7","1.4.13","1.4.13-java7","1.4.14","1.4.14-java7","1.4.14-jdk7","1.4.15","1.4.16","1.4.17","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-p8pq-r894-fm8f/GHSA-p8pq-r894-fm8f.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}