# CVE-2021-39139: XStream is vulnerable to an Arbitrary Code Execution attack

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.54%, higher than 91% of CVEs (2026-12-01)
- Published: 2021-08-23T17:50:14.000Z
- Modified: 2026-10-07T21:17:03.330Z
- Also known as: GHSA-64xx-cq4q-mf44
- Weaknesses: CWE-434, CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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. A user is only affected if using the version out of the box with JDK 1.7u21 or below. However, this scenario can be adjusted easily to an external Xalan that works regardless of the version of the Java runtime. 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.

(As written by CVE List.)

## Affected

- x-stream xstream: < 1.4.18
- com.thoughtworks.xstream:xstream (Maven): before 1.4.18
- xstream xstream: before 1.4.18
- debian debian_linux: 9.0; 10.0; 11.0
- fedoraproject fedora: 33; 34; 35
- netapp snapmanager: no versions given
- oracle business_activity_monitoring: 12.2.1.4.0
- oracle commerce_guided_search: 11.3.2
- oracle communications_billing_and_revenue_management_elastic_charging_engine: 11.3; 12.0
- oracle communications_cloud_native_core_automated_test_suite: 1.9.0
- oracle communications_cloud_native_core_binding_support_function: 1.10.0
- oracle communications_cloud_native_core_policy: 1.14.0
- oracle communications_unified_inventory_management: 7.3.4; 7.3.5; 7.4.0; 7.4.1; 7.4.2
- oracle retail_xstore_point_of_service: 16.0.6; 17.0.4; 18.0.3; 19.0.2; 20.0.1
- oracle utilities_framework: 4.2.0.2.0; 4.2.0.3.0; 4.3.0.1.0; 4.3.0.6.0; 4.4.0.0.0; 4.4.0.2.0; 4.4.0.3.0
- oracle utilities_testing_accelerator: 6.0.0.1.1
- oracle webcenter_portal: 12.2.1.3.0; 12.2.1.4.0

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/x-stream/xstream/security/advisories/GHSA-64xx-cq4q-mf44> (third-party-advisory, web)
- <https://x-stream.github.io/CVE-2021-39139.html> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html> (mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/> (mailing-list, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/> (mailing-list, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/> (mailing-list, vendor-advisory)
- <https://www.debian.org/security/2021/dsa-5004> (third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210923-0003/> (third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39139> (advisory)
- <https://github.com/x-stream/xstream> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB> (web)
- <https://security.netapp.com/advisory/ntap-20210923-0003> (web)

## Sources

- CVE List: [CVE-2021-39139](https://www.cve.org/CVERecord?id=CVE-2021-39139), CVE Terms of Use, modified 2026-10-07
- GitHub Advisory Database: [GHSA-64xx-cq4q-mf44](https://github.com/advisories/GHSA-64xx-cq4q-mf44), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39139](https://nvd.nist.gov/vuln/detail/CVE-2021-39139), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2021-39139 · Whole record: https://cve.day/CVE-2021-39139.json · Rebuilt by cve.day 2026-11-25T22:58:03.367Z
