6.1medium
XStream is vulnerable to an Arbitrary Code Execution attack
- Severity
- 6.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 14.3% (higher than 96% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qpfq-ph7r-qv6fBIT-ACTIVEMQ-2021-21347
Description
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which 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. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| x-stream xstream | < 1.4.16 | CVE List |
| com.thoughtworks.xstream:xstream (Maven) | before 1.4.16 | GitHub Advisory Database |
| netapp oncommand_insight | Not specified | NVD |
| apache activemq | before 5.15.14, 5.16.0, 5.16.1 | NVD |
| apache jmeter | before 5.5 | NVD |
| xstream xstream | before 1.4.16 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| fedoraproject fedora | 33, 34, 35 | NVD |
| oracle banking_enterprise_default_management | 2.10.0, 2.12.0 | NVD |
| oracle banking_platform | 2.4.0, 2.7.1, 2.9.0, 2.12.0 | NVD |
| oracle banking_virtual_account_management | 14.2.0, 14.3.0, 14.5.0 | NVD |
| oracle business_activity_monitoring | 11.1.1.9.0, 12.2.1.3.0, 12.2.1.4.0 | NVD |
| oracle communications_billing_and_revenue_management_elastic_charging_engine | 12.0.0.3.0 | NVD |
| oracle communications_policy_management | 12.5.0 | NVD |
| oracle communications_unified_inventory_management | 7.3.2, 7.3.4, 7.3.5, 7.4.0, 7.4.1 | NVD |
| oracle retail_xstore_point_of_service | 16.0.6, 17.0.4, 18.0.3, 19.0.2 | NVD |
| oracle webcenter_portal | 11.1.1.9.0, 12.2.1.3.0, 12.2.1.4.0 | NVD |
| oracle weblogic_server | 12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0 | NVD |
| activemq (Bitnami) | before 5.15.14, from 5.16.0 up to 5.16.0, from 5.16.1 up to 5.16.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which 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. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
GitHub Advisory Database
Impact
The 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.
Patches
If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
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-21347.
Credits
The vulnerability was discovered and reported by threedr3am.
For more information
If you have any questions or comments about this advisory:
- Open an issue in XStream
- Contact us at XStream Google Group
NVD (es)
XStream es una biblioteca de Java para serializar objetos a XML y viceversa. En XStream anterior a la versión 1.4.16, se presenta una vulnerabilidad que puede permitir a un atacante remoto cargar y ejecutar código arbitrario desde un host remoto solo manipulando el flujo de entrada procesado. Ningún usuario está afectado, si siguió la recomendación de configurar el framework de seguridad de XStream con una lista blanca limitada a los tipos mínimos requeridos. Si confía en la lista negra predeterminada de XStream del Framework de Seguridad, tendrá que usar al menos la versión 1.4.16
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21347 changed 2026-10-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qpfq-ph7r-qv6f changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21347 changed 2026-10-07 | Public domain |
| Bitnami Vulnerability Database | BIT-ACTIVEMQ-2021-21347 changed 2026-09-08 | Apache-2.0 |