The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-21347

CVE-2021-21347: NetApp OnCommand Insight RCE Vulnerability

CVE-2021-21347 is a remote code execution vulnerability in NetApp OnCommand Insight affecting XStream library versions before 1.4.16. Attackers can execute arbitrary code by manipulating input streams. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: February 25, 2026

CVE-2021-21347 Overview

CVE-2021-21347 is an insecure deserialization vulnerability in XStream, a popular Java library used to serialize objects to XML and back again. In XStream versions prior to 1.4.16, a remote attacker can load and execute arbitrary code from a remote host by manipulating the processed input stream. This vulnerability affects applications that rely on XStream's default blacklist security mechanism rather than implementing a properly configured whitelist.

Critical Impact

Remote attackers can achieve arbitrary code execution on vulnerable systems by crafting malicious XML input, potentially leading to complete system compromise without requiring authentication.

Affected Products

  • XStream versions prior to 1.4.16
  • Apache ActiveMQ 5.16.0 and 5.16.1
  • Apache JMeter (multiple versions)
  • Oracle WebLogic Server 12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0, and 14.1.1.0.0
  • Oracle Banking Platform 2.4.0, 2.7.1, 2.9.0, and 2.12.0
  • NetApp OnCommand Insight
  • Debian Linux 9.0, 10.0, and 11.0
  • Fedora 33, 34, and 35
  • Oracle WebCenter Portal 11.1.1.9.0, 12.2.1.3.0, and 12.2.1.4.0
  • Oracle Communications Unified Inventory Management 7.3.2 through 7.4.1

Discovery Timeline

  • 2021-03-23 - CVE-2021-21347 published to NVD
  • 2025-05-23 - Last updated in NVD database

Technical Details for CVE-2021-21347

Vulnerability Analysis

This vulnerability stems from insecure deserialization in XStream's XML processing functionality. When XStream deserializes untrusted XML input, it can be tricked into instantiating arbitrary Java classes and invoking methods on those objects. The vulnerability exists because XStream's default security configuration relies on a blacklist approach to block known dangerous classes, which can be bypassed using gadget chains that leverage classes not included in the blacklist.

The attack leverages Java's dynamic class loading capabilities combined with XStream's ability to reconstruct arbitrary object graphs from XML. An attacker can craft a malicious XML payload that, when deserialized, triggers a chain of method invocations ultimately resulting in remote code execution.

Root Cause

The root cause is CWE-434 (Unrestricted Upload of Dangerous File Type), which in this context manifests as the ability to load and execute arbitrary code through the deserialization process. XStream's default security framework uses a blacklist to prevent instantiation of known dangerous classes, but this approach is inherently flawed as new gadget chains can bypass the blacklist.

Applications that do not configure XStream's security framework with a whitelist of explicitly allowed types are vulnerable. The blacklist-based security model cannot anticipate all possible exploitation paths, making it insufficient for protecting against deserialization attacks.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending a specially crafted XML payload to any endpoint that deserializes XML using a vulnerable XStream instance. The malicious XML contains serialized Java objects that form a gadget chain, ultimately allowing the attacker to:

  1. Load arbitrary classes from a remote host
  2. Execute arbitrary code within the context of the vulnerable application
  3. Potentially achieve full system compromise depending on application privileges

The exploitation does not require any prior access to the target system, making it particularly dangerous for internet-facing applications.

Detection Methods for CVE-2021-21347

Indicators of Compromise

  • Unexpected outbound network connections from Java application processes to unknown external hosts
  • Unusual XML payloads in application logs containing references to uncommon Java classes or nested object structures
  • Evidence of arbitrary class loading or reflection-based method invocations in application audit logs
  • Suspicious process spawning from Java application containers or JVM processes

Detection Strategies

  • Implement application-layer firewall rules to inspect XML content for known XStream exploitation patterns and gadget chain class names
  • Deploy network intrusion detection signatures to identify malicious serialized object payloads in HTTP traffic
  • Enable verbose logging for XStream deserialization operations and monitor for attempts to instantiate classes outside the expected application scope
  • Conduct regular dependency scanning to identify applications using vulnerable XStream versions

Monitoring Recommendations

  • Monitor Java application memory and CPU usage for anomalies that may indicate exploitation attempts
  • Implement centralized logging for all XML processing endpoints and configure alerts for unusual deserialization patterns
  • Track network egress from application servers to detect potential callback connections to attacker-controlled hosts
  • Review application dependencies and create an inventory of all components using XStream for prioritized patching

How to Mitigate CVE-2021-21347

Immediate Actions Required

  • Upgrade XStream to version 1.4.16 or later immediately across all affected applications
  • Configure XStream's security framework with a strict whitelist limited to the minimal required types for your application
  • Audit all applications in your environment for XStream dependencies, including transitive dependencies
  • Implement input validation to reject XML payloads from untrusted sources where possible

Patch Information

The vulnerability is addressed in XStream version 1.4.16 and later. Multiple vendors have released security updates addressing this vulnerability:

  • Oracle addressed this in their Critical Patch Update January 2022 and previous CPU releases
  • Debian released security advisories DSA-5004 and updates for affected versions
  • Fedora released package updates for versions 33, 34, and 35
  • NetApp released advisory NTAP-20210430-0002

For detailed patch information, refer to the XStream 1.4.16 Changes Document.

Workarounds

  • Implement XStream's security framework with an explicit whitelist of allowed types using XStream.addPermission() to allow only minimal required types
  • If upgrading is not immediately possible, configure XStream with XStream.setupDefaultSecurity() and add only the specific types your application requires
  • Consider blocking or sanitizing XML input at the application perimeter to prevent malicious payloads from reaching XStream
  • Isolate applications using XStream in restricted network segments to limit potential impact of exploitation
bash
# Configuration example for XStream whitelist security
# Add to your Java application initialization code:
# 
# XStream xstream = new XStream();
# xstream.addPermission(NoTypePermission.NONE);
# xstream.addPermission(NullPermission.NULL);
# xstream.addPermission(PrimitiveTypePermission.PRIMITIVES);
# xstream.allowTypes(new Class[] { YourClass.class });
# xstream.allowTypesByWildcard(new String[] { "com.yourcompany.dto.**" });
#
# Reference: https://x-stream.github.io/security.html#workaround

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechXstream

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability2.89%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • X-Stream Changes Document

  • GitHub Security Advisory

  • Apache ActiveMQ User Thread

  • Apache JMeter Dev Thread

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Debian Security Notice

  • Oracle CPU July 2021

  • Oracle CPU October 2021

  • X-Stream CVE-2021-21347 Details
  • Vendor Resources
  • Oracle CPU January 2022

  • X-Stream Security Workarounds
  • Related CVEs
  • CVE-2021-29505: XStream Java Library RCE Vulnerability

  • CVE-2020-26217: XStream RCE Vulnerability

  • CVE-2021-39139: XStream Library RCE Vulnerability

  • CVE-2021-39153: XStream Library RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English