CVE-2021-21345 in Apache Activemq and 15 more products
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 who has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user is affected, who followed the recommend...
Affects 16 products from 6 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Apache | Activemq | 5.16.0 5.16.1 < 5.15.14 |
| Apache | Jmeter | < 5.5 |
| Debian | Debian Linux | 9.0 10.0 11.0 |
| Fedoraproject | Fedora | 33 34 35 |
| Netapp | Oncommand Insight | No version listed by the source |
| Oracle | Webcenter Portal | 11.1.1.9.0 12.2.1.3.0 12.2.1.4.0 |
| Oracle | Banking Virtual Account Management | 14.2.0 14.3.0 14.5.0 |
| Oracle | Business Activity Monitoring | 11.1.1.9.0 12.2.1.3.0 12.2.1.4.0 |
| Oracle | Communications Billing And Revenue Management Elastic Charging Engine | 12.0.0.3.0 |
| Oracle | Banking Enterprise Default Management | 2.10.0 2.12.0 |
| Oracle | Communications Unified Inventory Management | 7.3.2 7.3.4 7.3.5 7.4.0 7.4.1 |
| Oracle | Peoplesoft Enterprise Peopletools | 8.58 8.59 |
| Oracle | Communications Policy Management | 12.5.0 |
| Oracle | Retail Xstore Point Of Service | 16.0.6 17.0.4 18.0.3 19.0.2 |
| Oracle | Banking Platform | 2.4.0 2.7.1 2.9.0 2.12.0 |
| Xstream | Xstream | < 1.4.16 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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 who 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. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-21345 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-248401-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2021-03-23 |
| Last modified | 2026-10-07 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
CWE-502: Deserialization of Untrusted Data
Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-78
Show all 9
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-88 OS Command Injection via CWE-78
CAPEC-242 Code Injection via CWE-94
CAPEC-586 Object Injection via CWE-502
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
XStream versions prior to 1.4.16 are vulnerable to remote code execution due to improper handling of deserialization, allowing attackers to execute arbitrary commands on the host system.
An attacker with sufficient rights can manipulate the processed input stream to execute commands on the host system. This is achieved by exploiting the deserialization process in XStream, which can be tricked into loading malicious objects.
Questions
What is CVE-2021-21345?
XStream versions prior to 1.4.16 are vulnerable to remote code execution due to improper handling of deserialization, allowing attackers to execute arbitrary commands on the host system.
What is the CVSS score for CVE-2021-21345?
CVE-2021-21345 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 72.3%.
Is CVE-2021-21345 actively exploited?
No confirmed active exploitation of CVE-2021-21345 as of 2026-10-08.
How do I remediate CVE-2021-21345?
Priority: IMMEDIATE. Advisory: https://www.oracle.com/security-alerts/cpujan2022.html PSIRT: [email protected]
What systems are affected by CVE-2021-21345?
CVE-2021-21345 affects Apache Activemq, Jmeter; Debian Debian Linux; Fedoraproject Fedora; Netapp Oncommand Insight; Oracle Webcenter Portal, Banking Virtual Account Management, Business Activity Monitoring, Communications Billing And Revenue Management Elastic Charging Engine, Banking Enterprise Default Management (plus 6 more products across 1 more vendor).
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Apache","product":"Activemq","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-07.