CVE-2021-29505
JSON

7.5high

XStream is vulnerable to a Remote Command Execution attack

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
77.2% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7chv-rrw6-w6fc

Description

XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.

Affected

Product or packageVersionsReported by
x-stream xstream< 1.4.17CVE List
com.thoughtworks.xstream:xstream (Maven)before 1.4.17GitHub Advisory Database
xstream xstreambefore 1.4.17NVD
debian debian_linux9.0, 10.0, 11.0NVD
fedoraproject fedora33, 34, 35NVD
netapp snapmanagerNot specifiedNVD
oracle banking_cash_management14.2, 14.3, 14.5NVD
oracle banking_corporate_lending_process_management14.2.0, 14.3.0, 14.5.0NVD
oracle banking_credit_facilities_process_management14.2.0, 14.3.0, 14.5.0NVD
oracle banking_supply_chain_finance14.2.0NVD
oracle banking_trade_finance_process_management14.5.0NVD
oracle business_activity_monitoring11.1.1.9.0, 12.2.1.3.0, 12.2.1.4.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

CWE-74CWE-94CWE-502

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

What each source says

CVE List

XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.

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

If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.17.

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-29505.

Credits

V3geB1rd, white hat hacker from 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 un software para serializar objetos Java a XML y viceversa. Una vulnerabilidad en las versiones de XStream anteriores a la versión 1.4.17 puede permitir a un atacante remoto que tenga derechos suficientes ejecutar comandos del host sólo manipulando el flujo de entrada procesado. Ningún usuario que haya seguido la recomendación de configurar el marco de seguridad de XStream con una lista blanca limitada a los tipos mínimos necesarios está afectado. La vulnerabilidad está parcheada en la versión 1.4.17

References

https://github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fcthird-party-advisory, web
https://github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624fpatch, third-party-advisory, web
https://github.com/x-stream/xstream/commit/f0c4a8d861b68ffc3119cfbbbd632deee624e227web
https://lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f@%3Cdev.jmeter.apache.org%3Eweb
https://lists.debian.org/debian-lts-announce/2021/07/msg00004.htmlmailing-list, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHPweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREBweb
https://security.netapp.com/advisory/ntap-20210708-0007web
https://www.debian.org/security/2021/dsa-5004third-party-advisory, vendor-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory, web
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-29505 changed 2026-10-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-7chv-rrw6-w6fc changed 2026-07-08CC-BY-4.0
NVDCVE-2021-29505 changed 2026-10-07Public domain