Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-39153

CVE-2021-39153: XStream Library RCE Vulnerability

CVE-2021-39153 is a remote code execution vulnerability in XStream library that allows attackers to load and execute arbitrary code from remote hosts. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-39153 Overview

CVE-2021-39153 is an insecure deserialization vulnerability in XStream, a Java library used to serialize objects to XML and back. This vulnerability allows a remote attacker to load and execute arbitrary code from a remote host by manipulating the processed input stream. The vulnerability affects systems using XStream out of the box with Java runtime versions 14 to 8 or with JavaFX installed.

The XStream library, prior to version 1.4.18, relied on a blacklist-based security approach to prevent dangerous deserialization. This approach proved insufficient as attackers could bypass the blacklist by crafting malicious XML payloads that leveraged classes not included in the blocklist.

Critical Impact

Remote attackers can achieve arbitrary code execution on vulnerable systems by sending specially crafted XML payloads to applications using unprotected XStream deserialization, potentially leading to complete system compromise.

Affected Products

  • XStream versions prior to 1.4.18
  • Fedora 33, 34, and 35
  • Debian Linux 9.0, 10.0, and 11.0
  • NetApp SnapManager for Oracle and SAP
  • Oracle Business Activity Monitoring 12.2.1.4.0
  • Oracle Communications Billing and Revenue Management Elastic Charging Engine 11.3 and 12.0
  • Oracle Communications Cloud Native Core Automated Test Suite 1.9.0
  • Oracle Communications Cloud Native Core Binding Support Function 1.10.0
  • Oracle Communications Cloud Native Core Policy 1.14.0
  • Oracle Communications Unified Inventory Management 7.3.4, 7.3.5, 7.4.0, 7.4.1, 7.4.2
  • Oracle Utilities Framework multiple versions (4.2.0.2.0 through 4.4.0.3.0)
  • Oracle Utilities Testing Accelerator 6.0.0.1.1
  • Oracle WebCenter Portal 12.2.1.3.0 and 12.2.1.4.0

Discovery Timeline

  • 2021-08-23 - CVE-2021-39153 published to NVD
  • 2025-05-23 - Last updated in NVD database

Technical Details for CVE-2021-39153

Vulnerability Analysis

This vulnerability is classified as an insecure deserialization flaw (CWE-434) that enables remote code execution. The attack requires network access and low privileges, though exploitation complexity is considered high due to specific environmental requirements.

The vulnerability specifically targets the XStream deserialization mechanism when JavaFX is present on the target system. JavaFX provides classes that can be leveraged as deserialization gadgets, allowing attackers to construct payloads that execute arbitrary code when processed by the vulnerable XStream library.

Users who implemented XStream's security framework with a properly configured whitelist limited to minimal required types are not affected by this vulnerability. The security model change in version 1.4.18 reflects a fundamental shift from blacklist to whitelist-based protection.

Root Cause

The root cause of CVE-2021-39153 lies in XStream's default security configuration, which used a blacklist approach to block known dangerous classes during deserialization. This security model is inherently flawed because:

  1. New gadget chains can be discovered that bypass existing blacklists
  2. The presence of JavaFX introduces additional classes that can serve as deserialization gadgets
  3. The default configuration does not restrict deserialization to a minimal set of trusted types

XStream's reliance on blocking specific dangerous classes rather than allowing only safe classes meant that any newly discovered gadget chain could be exploited until explicitly added to the blacklist.

Attack Vector

The attack exploits the network-accessible XStream deserialization endpoint by sending maliciously crafted XML input. When JavaFX is installed on the target system (common in Java 8-14 environments), certain JavaFX classes can be instantiated during deserialization to achieve code execution.

The attack flow involves:

  1. The attacker identifies an application endpoint that deserializes XML using XStream
  2. A specially crafted XML payload is constructed that leverages JavaFX classes as deserialization gadgets
  3. The malicious XML is sent to the vulnerable endpoint
  4. XStream processes the XML and instantiates the malicious object chain
  5. The gadget chain executes, loading and running arbitrary code from an attacker-controlled remote host

The vulnerability requires the changed scope (S:C in CVSS vector), indicating that successful exploitation can impact resources beyond the vulnerable component's security scope, potentially compromising the entire system.

Detection Methods for CVE-2021-39153

Indicators of Compromise

  • Unusual outbound network connections from Java application processes to unknown external hosts
  • Unexpected class loading activity involving JavaFX-related classes in applications that don't typically use JavaFX
  • XML payloads containing suspicious class references such as javafx.collections.ObservableList or similar JavaFX types
  • Evidence of remote code execution such as new processes spawned by the Java application

Detection Strategies

  • Monitor application logs for XStream parsing errors or exceptions related to unexpected class types
  • Implement network-level monitoring for Java applications making connections to untrusted external hosts
  • Deploy application-level intrusion detection to identify malicious XML deserialization patterns
  • Review XStream configuration to verify security framework implementation with appropriate whitelists

Monitoring Recommendations

  • Enable verbose logging for XStream deserialization operations in production environments
  • Implement alerting on unexpected process creation by Java application servers
  • Monitor for anomalous XML payloads containing class type information in incoming requests
  • Track dependency versions across applications to identify vulnerable XStream deployments

How to Mitigate CVE-2021-39153

Immediate Actions Required

  • Upgrade XStream to version 1.4.18 or later, which defaults to whitelist-based security
  • Implement XStream's security framework with a whitelist limited to minimal required types
  • Review all applications using XStream and assess exposure to untrusted XML input
  • Consider removing JavaFX from environments where it is not required

Patch Information

The XStream project addressed this vulnerability in version 1.4.18 by fundamentally changing the default security model from blacklist to whitelist-based protection. Organizations should upgrade to this version or later to receive the security fix.

Additional security advisories have been released by downstream vendors:

  • Oracle Security Alert - January 2022
  • Oracle Security Alert - April 2022
  • Oracle Security Alert - July 2022
  • Debian Security Advisory DSA-5004
  • NetApp Security Advisory NTAP-20210923-0003

For detailed vulnerability information, see the XStream CVE-2021-39153 Details and GitHub Security Advisory GHSA-2q8x-2p7f-574v.

Workarounds

  • Configure XStream with explicit type permissions using XStream.addPermission() to create a whitelist of allowed types
  • Block deserialization of JavaFX classes by adding them to a custom denylist if upgrading is not immediately possible
  • Implement input validation to reject XML containing unexpected type hints before processing
  • Deploy web application firewalls with rules to detect and block malicious XStream serialization payloads
java
// XStream Security Configuration Example
XStream xstream = new XStream();
// Clear all permissions first
xstream.addPermission(NoTypePermission.NONE);
// Allow only specific required types
xstream.addPermission(NullPermission.NULL);
xstream.addPermission(PrimitiveTypePermission.PRIMITIVES);
xstream.allowTypeHierarchy(Collection.class);
// Add only the specific types your application needs
xstream.allowTypes(new Class[] { YourTrustedClass.class });

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechXstream

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.59%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • GitHub Security Advisory GHSA-2q8x-2p7f-574v

  • Debian LTS Announcement

  • Fedora Package Announcement Update

  • Fedora Package Announcement Update

  • Fedora Package Announcement Update

  • NetApp Security Advisory NTAP-20210923-0003

  • Debian Security Advisory DSA-5004

  • Oracle Security Alert CPUJUL2022

  • XStream CVE-2021-39153 Details
  • Vendor Resources
  • Oracle Security Alert CPUAPR2022

  • Oracle Security Alert CPUJAN2022
  • Related CVEs
  • CVE-2021-29505: XStream Java Library RCE Vulnerability

  • CVE-2021-21347: NetApp OnCommand Insight RCE Vulnerability

  • CVE-2020-26217: XStream RCE Vulnerability

  • CVE-2021-39139: 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