---
id: CVE-2021-39139
title: XStream is a simple library to serialize objects to XML and back again
summary: >-
  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 st…
severity: high
cvss: 8.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-434
  - CWE-502
vendor: xstream
product: xstream
affected:
  - xstream < 1.4.18
  - debian_linux = 9.0
  - debian_linux = 10.0
  - debian_linux = 11.0
  - fedora = 33
  - fedora = 34
  - fedora = 35
  - snapmanager
  - business_activity_monitoring = 12.2.1.4.0
  - commerce_guided_search = 11.3.2
  - communications_billing_and_revenue_management_elastic_charging_engine = 11.3
  - communications_billing_and_revenue_management_elastic_charging_engine = 12.0
  - communications_cloud_native_core_automated_test_suite = 1.9.0
  - communications_cloud_native_core_binding_support_function = 1.10.0
  - communications_cloud_native_core_policy = 1.14.0
  - communications_unified_inventory_management = 7.3.4
  - communications_unified_inventory_management = 7.3.5
  - communications_unified_inventory_management = 7.4.0
  - communications_unified_inventory_management = 7.4.1
  - communications_unified_inventory_management = 7.4.2
  - retail_xstore_point_of_service = 16.0.6
  - retail_xstore_point_of_service = 17.0.4
  - retail_xstore_point_of_service = 18.0.3
  - retail_xstore_point_of_service = 19.0.2
  - retail_xstore_point_of_service = 20.0.1
  - utilities_framework = 4.2.0.2.0
  - utilities_framework = 4.2.0.3.0
  - utilities_framework = 4.3.0.1.0
  - utilities_framework = 4.3.0.6.0
  - utilities_framework = 4.4.0.0.0
  - utilities_framework = 4.4.0.2.0
  - utilities_framework = 4.4.0.3.0
  - utilities_testing_accelerator = 6.0.0.1.1
  - webcenter_portal = 12.2.1.3.0
  - webcenter_portal = 12.2.1.4.0
patched:
  - xstream 1.4.18
published: '2021-08-23'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T21:17:03.330'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-39139'
references:
  - url: >-
      https://github.com/x-stream/xstream/security/advisories/GHSA-64xx-cq4q-mf44
    label: security-advisories@github.com
  - url: 'https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html'
    label: security-advisories@github.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/
    label: security-advisories@github.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/
    label: security-advisories@github.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/
    label: security-advisories@github.com
  - url: 'https://security.netapp.com/advisory/ntap-20210923-0003/'
    label: security-advisories@github.com
  - url: 'https://www.debian.org/security/2021/dsa-5004'
    label: security-advisories@github.com
  - url: 'https://www.oracle.com/security-alerts/cpuapr2022.html'
    label: security-advisories@github.com
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: security-advisories@github.com
  - url: 'https://www.oracle.com/security-alerts/cpujul2022.html'
    label: security-advisories@github.com
  - url: 'https://x-stream.github.io/CVE-2021-39139.html'
    label: security-advisories@github.com
  - url: >-
      https://github.com/x-stream/xstream/security/advisories/GHSA-64xx-cq4q-mf44
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20210923-0003/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2021/dsa-5004'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpuapr2022.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpujul2022.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://x-stream.github.io/CVE-2021-39139.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
epss: 0.0454
epssPercentile: 0.91305
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-07T19:58:41.661021Z'
ingestedAt: '2026-10-07T20:46:47.003Z'
---

## Overview

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.

## Affected

- `xstream < 1.4.18`
- `debian_linux = 9.0`
- `debian_linux = 10.0`
- `debian_linux = 11.0`
- `fedora = 33`
- `fedora = 34`
- `fedora = 35`
- `snapmanager`
- `business_activity_monitoring = 12.2.1.4.0`
- `commerce_guided_search = 11.3.2`
- `communications_billing_and_revenue_management_elastic_charging_engine = 11.3`
- `communications_billing_and_revenue_management_elastic_charging_engine = 12.0`
- `communications_cloud_native_core_automated_test_suite = 1.9.0`
- `communications_cloud_native_core_binding_support_function = 1.10.0`
- `communications_cloud_native_core_policy = 1.14.0`
- `communications_unified_inventory_management = 7.3.4`
- `communications_unified_inventory_management = 7.3.5`
- `communications_unified_inventory_management = 7.4.0`
- `communications_unified_inventory_management = 7.4.1`
- `communications_unified_inventory_management = 7.4.2`
- `retail_xstore_point_of_service = 16.0.6`
- `retail_xstore_point_of_service = 17.0.4`
- `retail_xstore_point_of_service = 18.0.3`
- `retail_xstore_point_of_service = 19.0.2`
- `retail_xstore_point_of_service = 20.0.1`
- `utilities_framework = 4.2.0.2.0`
- `utilities_framework = 4.2.0.3.0`
- `utilities_framework = 4.3.0.1.0`
- `utilities_framework = 4.3.0.6.0`
- `utilities_framework = 4.4.0.0.0`
- `utilities_framework = 4.4.0.2.0`
- `utilities_framework = 4.4.0.3.0`
- `utilities_testing_accelerator = 6.0.0.1.1`
- `webcenter_portal = 12.2.1.3.0`
- `webcenter_portal = 12.2.1.4.0`

## Remediation

Upgrade past the affected range:

- `xstream 1.4.18`
