On this page
Atomicorp WAF Research Note: CVE-2021-21345
XStream < 1.4.16 - Remote Code Execution
CVE Details
- Already protected by existing Atomicorp WAF rules
- Protection status: Understanding Atomicorp WAF Protection Status
- CVE: CVE-2021-21345
- Name: XStream < 1.4.16 - Remote Code Execution
- Severity: Critical
- CVSS: 9.9 (v3.1) (Critical)
- CVSS version: 3.1
- CVSS source: NVD
- CVSS vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- CWE: CWE-78 — Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’), CWE-94 — Improper Control of Generation of Code (‘Code Injection’), CWE-502 — Deserialization of Untrusted Data
- Related CAPEC attack patterns (via MITRE CWE relationships): CAPEC-108 (opens in a new tab) , CAPEC-15 (opens in a new tab) , CAPEC-242 (opens in a new tab) , CAPEC-35 (opens in a new tab) , CAPEC-43 (opens in a new tab) , CAPEC-586 (opens in a new tab) , CAPEC-6 (opens in a new tab) , CAPEC-77 (opens in a new tab) , CAPEC-88 (opens in a new tab)
- Vendor: xstream_project
- Vulnerable products: oncommand insight , activemq , jmeter , xstream , debian linux , fedora , banking enterprise default management , banking platform , banking virtual account management , business activity monitoring , communications billing and revenue management elastic charging engine , communications policy management , communications unified inventory management , peoplesoft enterprise peopletools , retail xstore point of service , webcenter portal , xstream
- CVE published: 2021-03-23
- CVE last modified: 2026-06-17
- Affected versions (NVD configurations):
- oncommand insight
- activemq: < 5.15.14
- activemq: 5.16.0
- activemq: 5.16.1
- jmeter: < 5.5
- xstream: < 1.4.16
- debian linux: 9.0
- debian linux: 10.0
- debian linux: 11.0
- fedora: 33
- fedora: 34
- fedora: 35
- banking enterprise default management: 2.10.0
- banking enterprise default management: 2.12.0
- banking platform: 2.4.0
- banking platform: 2.7.1
- banking platform: 2.9.0
- banking platform: 2.12.0
- banking virtual account management: 14.2.0
- banking virtual account management: 14.3.0
- banking virtual account management: 14.5.0
- business activity monitoring: 11.1.1.9.0
- business activity monitoring: 12.2.1.3.0
- business activity monitoring: 12.2.1.4.0
- communications billing and revenue management elastic charging engine: 12.0.0.3.0
- communications policy management: 12.5.0
- communications unified inventory management: 7.3.2
- 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
- peoplesoft enterprise peopletools: 8.58
- peoplesoft enterprise peopletools: 8.59
- 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
- webcenter portal: 11.1.1.9.0
- webcenter portal: 12.2.1.3.0
- webcenter portal: 12.2.1.4.0
- EPSS: 0.7232; 99.4th percentile (FIRST (opens in a new tab) )
- Latest Update: 2026-09-06
- Selected Rule IDs observed: 344363 , 344366
- Matching rules: 2; rules with blocking actions: 2
- Would-block Rule IDs: 344363 , 344366
- Request surfaces inspected: JSON request data, Request argument names, Request arguments, Request cookies, SOAP request data, XML request data
Technical CPE data
This section lists vulnerable CPE matches retained from the NVD configurations. It supplements the readable affected-product information above.
cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*- NVD match criteria ID:
F1BE6C1F-2565-4E97-92AA-16563E5660A5
- NVD match criteria ID:
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*- Version end (exclusive):
5.15.14 - NVD match criteria ID:
08739311-087C-4B48-8FD5-DE4CCDD1DE2B
- Version end (exclusive):
cpe:2.3:a:apache:activemq:5.16.0:*:*:*:*:*:*:*- NVD match criteria ID:
8DF1FC86-4D17-41C5-8307-B3EA9FEDA124
- NVD match criteria ID:
cpe:2.3:a:apache:activemq:5.16.1:*:*:*:*:*:*:*- NVD match criteria ID:
311BB335-06EE-4B7D-B1D7-FA0D1D2F9673
- NVD match criteria ID:
cpe:2.3:a:apache:jmeter:*:*:*:*:*:*:*:*- Version end (exclusive):
5.5 - NVD match criteria ID:
0D7DFDE4-E63D-49A0-A4EF-D6C5EF06AFD9
- Version end (exclusive):
cpe:2.3:a:xstream:xstream:*:*:*:*:*:*:*:*- Version end (exclusive):
1.4.16 - NVD match criteria ID:
61951B4B-1970-447E-AEFA-BFD5E7992640
- Version end (exclusive):
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*- NVD match criteria ID:
DEECE5FC-CACF-4496-A3E7-164736409252
- NVD match criteria ID:
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*- NVD match criteria ID:
07B237A9-69A3-4A9C-9DA0-4E06BD37AE73
- NVD match criteria ID:
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*- NVD match criteria ID:
FA6FEEC2-9F11-4643-8827-749718254FED
- NVD match criteria ID:
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*- NVD match criteria ID:
E460AA51-FCDA-46B9-AE97-E6676AA5E194
- NVD match criteria ID:
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*- NVD match criteria ID:
A930E247-0B43-43CB-98FF-6CE7B8189835
- NVD match criteria ID:
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*- NVD match criteria ID:
80E516C0-98A4-4ADE-B69F-66A772E2BAAA
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_enterprise_default_management:2.10.0:*:*:*:*:*:*:*- NVD match criteria ID:
74C7E2F1-17FC-4322-A5C3-F7EB612BA4F5
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_enterprise_default_management:2.12.0:*:*:*:*:*:*:*- NVD match criteria ID:
320D36DA-D99F-4149-B582-3F4AB2F41A1B
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_platform:2.4.0:*:*:*:*:*:*:*- NVD match criteria ID:
C2BEE49E-A5AA-42D3-B422-460454505480
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_platform:2.7.1:*:*:*:*:*:*:*- NVD match criteria ID:
645AA3D1-C8B5-4CD2-8ACE-31541FA267F0
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_platform:2.9.0:*:*:*:*:*:*:*- NVD match criteria ID:
AB9FC9AB-1070-420F-870E-A5EC43A924A4
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_platform:2.12.0:*:*:*:*:*:*:*- NVD match criteria ID:
BDC6D658-09EA-4C41-869F-1C2EA163F751
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_virtual_account_management:14.2.0:*:*:*:*:*:*:*- NVD match criteria ID:
D1534C11-E3F5-49F3-8F8D-7C5C90951E69
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_virtual_account_management:14.3.0:*:*:*:*:*:*:*- NVD match criteria ID:
D952E04D-DE2D-4AE0-BFE6-7D9B7E55AC80
- NVD match criteria ID:
cpe:2.3:a:oracle:banking_virtual_account_management:14.5.0:*:*:*:*:*:*:*- NVD match criteria ID:
1111BCFD-E336-4B31-A87E-76C684AC6DE4
- NVD match criteria ID:
cpe:2.3:a:oracle:business_activity_monitoring:11.1.1.9.0:*:*:*:*:*:*:*- NVD match criteria ID:
CC723E79-8F35-417B-B9D9-6A707F74C1EE
- NVD match criteria ID:
cpe:2.3:a:oracle:business_activity_monitoring:12.2.1.3.0:*:*:*:*:*:*:*- NVD match criteria ID:
5700C2E9-5FF2-48EF-AD85-3C03EDA76536
- NVD match criteria ID:
cpe:2.3:a:oracle:business_activity_monitoring:12.2.1.4.0:*:*:*:*:*:*:*- NVD match criteria ID:
BA8461A2-428C-4817-92A9-0C671545698D
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_billing_and_revenue_management_elastic_charging_engine:12.0.0.3.0:*:*:*:*:*:*:*- NVD match criteria ID:
3784BE26-B268-40F3-9B10-88E50A4400AE
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_policy_management:12.5.0:*:*:*:*:*:*:*- NVD match criteria ID:
5312AC7A-3C16-4967-ACA6-317289A749D0
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_unified_inventory_management:7.3.2:*:*:*:*:*:*:*- NVD match criteria ID:
1B58BCDA-E173-4D4A-A9C5-E9BFF7E57F58
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_unified_inventory_management:7.3.4:*:*:*:*:*:*:*- NVD match criteria ID:
0D299528-8EF0-49AF-9BDE-4B6C6B1DA36C
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_unified_inventory_management:7.3.5:*:*:*:*:*:*:*- NVD match criteria ID:
17A91FD9-9F77-42D3-A4D9-48BC7568ADE1
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.0:*:*:*:*:*:*:*- NVD match criteria ID:
539DA24F-E3E0-4455-84C6-A9D96CD601B3
- NVD match criteria ID:
cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.1:*:*:*:*:*:*:*- NVD match criteria ID:
A7637F8B-15F1-42E2-BE18-E1FF7C66587D
- NVD match criteria ID:
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.58:*:*:*:*:*:*:*- NVD match criteria ID:
D9DB4A14-2EF5-4B54-95D2-75E6CF9AA0A9
- NVD match criteria ID:
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.59:*:*:*:*:*:*:*- NVD match criteria ID:
C8AF00C6-B97F-414D-A8DF-057E6BFD8597
- NVD match criteria ID:
cpe:2.3:a:oracle:retail_xstore_point_of_service:16.0.6:*:*:*:*:*:*:*- NVD match criteria ID:
490B2C44-CECD-4551-B04F-4076D0E053C7
- NVD match criteria ID:
cpe:2.3:a:oracle:retail_xstore_point_of_service:17.0.4:*:*:*:*:*:*:*- NVD match criteria ID:
DEC41EB8-73B4-4BDF-9321-F34EC0BAF9E6
- NVD match criteria ID:
cpe:2.3:a:oracle:retail_xstore_point_of_service:18.0.3:*:*:*:*:*:*:*- NVD match criteria ID:
48EFC111-B01B-4C34-87E4-D6B2C40C0122
- NVD match criteria ID:
cpe:2.3:a:oracle:retail_xstore_point_of_service:19.0.2:*:*:*:*:*:*:*- NVD match criteria ID:
073FEA23-E46A-4C73-9D29-95CFF4F5A59D
- NVD match criteria ID:
cpe:2.3:a:oracle:webcenter_portal:11.1.1.9.0:*:*:*:*:*:*:*- NVD match criteria ID:
D7756147-7168-4E03-93EE-31379F6BE88E
- NVD match criteria ID:
cpe:2.3:a:oracle:webcenter_portal:12.2.1.3.0:*:*:*:*:*:*:*- NVD match criteria ID:
D6A4F71A-4269-40FC-8F61-1D1301F2B728
- NVD match criteria ID:
cpe:2.3:a:oracle:webcenter_portal:12.2.1.4.0:*:*:*:*:*:*:*- NVD match criteria ID:
5A502118-5B2B-47AE-82EC-1999BD841103
- NVD match criteria ID:
Vulnerability 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.
Recommended Actions
Maintain the observed Atomicorp protections. Keep your Atomicorp commercial rules current and confirm that the selected observed rules (344363 , 344366 ) have not been locally disabled. Atomicorp commercial rules are enabled by default. If you use Atomic WAF, review the applicable policy and rule settings.
Apply the vendor’s remediation. WAF protection is defense in depth and does not replace upgrading or following the affected vendor’s guidance.
- Affected versions: x-stream xstream version < 1.4.16.
- The CVE record does not include written upgrade or workaround instructions, but it does publish the following patch or mitigation reference:
Validate after changes. Confirm rule updates are current, review WAF events for the affected application, and test application behavior after vendor upgrades, mitigations, or local policy changes.
Research Notes
Atomicorp WAF protections are designed around attack techniques and exploit behaviors, allowing existing protections to apply across multiple vulnerabilities without requiring a unique rule for every CVE.
Public Vulnerability References
- NVD (opens in a new tab)
- CVE Record (opens in a new tab)
- Patch or mitigation: http://x-stream.github.io/changes.html#1.4.16 (opens in a new tab)
- Exploit or technical research: https://github.com/x-stream/xstream/security/advisories/GHSA-hwpc-8xqv-jvj4 (opens in a new tab)
- Exploit or technical research: https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3E (opens in a new tab)
- Exploit or technical research: https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3E (opens in a new tab)
- Exploit or technical research: https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html (opens in a new tab)
- Exploit or technical research: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/ (opens in a new tab)
- Exploit or technical research: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/ (opens in a new tab)
- Exploit or technical research: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/ (opens in a new tab)
- Exploit or technical research: https://security.netapp.com/advisory/ntap-20210430-0002/ (opens in a new tab)
- Exploit or technical research: https://www.debian.org/security/2021/dsa-5004 (opens in a new tab)
- Exploit or technical research: https://www.oracle.com//security-alerts/cpujul2021.html (opens in a new tab)
- Patch or mitigation: https://www.oracle.com/security-alerts/cpuApr2021.html (opens in a new tab)
- Vendor advisory: https://www.oracle.com/security-alerts/cpujan2022.html (opens in a new tab)
- Exploit or technical research: https://www.oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)
- Exploit or technical research: https://x-stream.github.io/CVE-2021-21345.html (opens in a new tab)
- Patch or mitigation: https://x-stream.github.io/security.html#workaround (opens in a new tab)
Test or Research Source
- Source: http/cves/2021/CVE-2021-21345.yaml (opens in a new tab)
- Tags: cve, cve2021, deserialization, oast, rce, vuln, xstream, xstream_project
Research Note Context
This research note documents exploit-technique analysis associated with this vulnerability and references Atomicorp WAF protections observed during engineering review, testing, or validation activities.
Atomicorp security controls are generally designed to identify and mitigate attack techniques and exploit behaviors rather than individual CVE identifiers. As a result, protections developed for one vulnerability may also apply to related attack variants and future vulnerabilities using similar techniques.
Learn More
Atomicorp develops commercially supported security technologies for web applications, servers, endpoints, workloads, and legacy enterprise platforms.
Organizations interested in protecting systems against exploit techniques associated with vulnerabilities such as this one can learn more about:
- Atomic ModSecurity Rules: commercially maintained WAF rules for ModSecurity deployments, including protections for web attacks, bots, scanners, malware, exploitation attempts, and emerging vulnerability classes.
- Atomic WAF: an enterprise web application firewall with Atomicorp rules, centralized management, reporting, authentication controls, and operational tooling.
- Atomic ModSecurity Integrator: a special licensing option for MSPs, MSSPs, OEMs, VARs, reverse proxy providers, and other integrators who want to incorporate Atomicorp ModSecurity rule technology into their own products or services.
- Atomic OSSEC: an enterprise OSSEC-based intrusion detection, compliance, and security monitoring platform.
- Atomic Protector: workload protection for Linux, web, cloud, data center, and hybrid environments.
For additional information, product evaluations, or technical discussions, visit https://www.atomicorp.com/ or https://modsecurity.io/ (opens in a new tab) .