CVE-2021-39144
JSON

8.5highExploited

XStream is vulnerable to a Remote Command Execution attack

Severity
8.5high CVSS:3.1 by GitHub_M
Exploit likelihood
98.2% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-j9h8-phrw-h4fh

Description

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker has sufficient rights to execute commands of the 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.

Affected

Product or packageVersionsReported by
x-stream xstream< 1.4.18CVE List
com.thoughtworks.xstream:xstream (Maven)before 1.4.18GitHub Advisory Database
xstream xstreambefore 1.4.18NVD, CISA KEV
debian debian_linux9.0, 10.0, 11.0NVD
fedoraproject fedora33, 34, 35NVD
netapp snapmanagerNot specifiedNVD
oracle business_activity_monitoring12.2.1.4.0NVD
oracle commerce_guided_search11.3.2NVD
oracle communications_billing_and_revenue_management_elastic_charging_engine11.3, 12.0NVD
oracle communications_cloud_native_core_automated_test_suite1.9.0NVD
oracle communications_cloud_native_core_binding_support_function1.10.0NVD
oracle communications_cloud_native_core_policy1.14.0NVD

All scores

GitHub_M8.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub8.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H
NVD8.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P

Classification

CWE-94CWE-306CWE-502

SSVC (CISA-ADP): exploitation active, automatable no, technical impact total.

What each source says

CVE List

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker has sufficient rights to execute commands of the 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.

GitHub Advisory Database
Impact

The vulnerability may allow a remote attacker has sufficient rights to execute commands of the 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.

Patches

XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

Workarounds

See workarounds for the different versions covering all CVEs.

References

See full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for CVE-2021-39144.

Credits

Ceclin and YXXX from the Tencent Security Response Center found and reported the issue to XStream and provided the required information to reproduce it.

For more information

If you have any questions or comments about this advisory:

NVD (es)

XStream es una biblioteca sencilla para serializar objetos a XML y viceversa. En las versiones afectadas esta vulnerabilidad puede permitir que un atacante remoto tenga los derechos suficientes para ejecutar comandos del host sólo al manipular el flujo de entrada procesado. No está afectado ningún usuario que haya seguido la recomendación de configurar el framework de seguridad de XStream con una lista blanca limitada a los tipos mínimos necesarios. XStream versión 1.4.18 ya no usa una lista negra por defecto, ya que no puede ser asegurada para fines generales.

CISA KEV

XStream contains a remote code execution vulnerability that allows an attacker to manipulate the processed input stream and replace or inject objects that result in the execution of a local command on the server. This vulnerability can affect multiple products, including but not limited to VMware Cloud Foundation.

References

https://github.com/x-stream/xstream/security/advisories/GHSA-j9h8-phrw-h4fhvendor-advisory, web
https://x-stream.github.io/CVE-2021-39144.htmlexploit, kev, vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2021/09/msg00017.htmlmailing-list, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/broken-link, mailing-list, release-notes, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/broken-link, mailing-list, release-notes, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/broken-link, mailing-list, release-notes, vendor-advisory
https://www.debian.org/security/2021/dsa-5004third-party-advisory, vendor-advisory, web
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20210923-0003/third-party-advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory, web
https://www.oracle.com/security-alerts/cpujul2022.htmlpatch, third-party-advisory, web
http://packetstormsecurity.com/files/169859/VMware-NSX-Manager-XStream-Unauthenticated-Remote-Code-Execution.htmlexploit, third-party-advisory, vdb-entry, web

Sources

SourceRecordLicence
CVE ListCVE-2021-39144 changed 2025-10-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-j9h8-phrw-h4fh changed 2026-07-08CC-BY-4.0
NVDCVE-2021-39144 changed 2026-06-17Public domain
CISA KEVCVE-2021-39144 changed 2023-03-10CC0-1.0