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-36162

CVE-2021-36162: Apache Dubbo RCE Vulnerability

CVE-2021-36162 is a remote code execution flaw in Apache Dubbo caused by unsafe SnakeYAML parsing of configuration rules. Attackers can poison routing rules to execute code on consumers. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-36162 Overview

Apache Dubbo, a high-performance RPC framework, contains an insecure deserialization vulnerability in its YAML configuration parsing functionality. The framework supports various rules for configuration override and traffic routing that are stored in configuration centers such as Zookeeper and Nacos. When parsing these YAML rules, Dubbo consumers use the SnakeYAML library with default settings that enable calling arbitrary constructors, allowing attackers with access to the configuration center to achieve remote code execution on all consuming services.

Critical Impact

An attacker who gains access to the configuration center can poison routing rules, resulting in remote code execution across all Dubbo consumer services retrieving those configurations.

Affected Products

  • Apache Dubbo versions prior to 2.7.13
  • Apache Dubbo versions prior to 3.0.2

Discovery Timeline

  • 2021-09-07 - CVE-2021-36162 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-36162

Vulnerability Analysis

This vulnerability is classified as an insecure deserialization flaw affecting Apache Dubbo's configuration handling mechanism. The root issue lies in how Dubbo consumers process YAML-based routing and configuration rules retrieved from centralized configuration stores.

Apache Dubbo's architecture relies on configuration centers (Zookeeper, Nacos, Apollo, etc.) to distribute routing rules and configuration overrides to service consumers. When a consumer retrieves these rules, it deserializes the YAML content using the SnakeYAML library. The vulnerability exists because SnakeYAML's default configuration permits the instantiation of arbitrary Java classes through YAML type tags, a feature that can be weaponized for remote code execution.

The attack requires network access and authenticated access to the configuration center. Once an attacker has write access to the configuration store, they can inject malicious YAML payloads that execute arbitrary code when parsed by any Dubbo consumer retrieving those rules.

Root Cause

The vulnerability stems from SnakeYAML's default behavior of allowing arbitrary constructor invocation through YAML type tags. When processing YAML documents, SnakeYAML supports a syntax like !!com.example.ClassName that instructs the parser to instantiate objects of the specified class. Without proper restrictions on which classes can be instantiated, an attacker can craft YAML payloads that trigger execution of dangerous constructors, such as those in javax.script.ScriptEngineManager or similar gadget chains.

Apache Dubbo's YAML parsing implementation did not implement a SafeConstructor or type filtering mechanism, leaving the deserialization process vulnerable to exploitation through poisoned configuration rules.

Attack Vector

The attack vector follows a supply-chain pattern targeting distributed systems infrastructure:

  1. Initial Access: The attacker gains access to the configuration center (Zookeeper, Nacos, etc.) through compromised credentials, network intrusion, or insider access
  2. Payload Injection: The attacker modifies existing routing rules or creates new ones containing malicious YAML type tags designed to instantiate dangerous Java classes
  3. Distributed Execution: When Dubbo consumers retrieve configuration updates from the configuration center, the malicious YAML is parsed and the exploit payload executes
  4. Mass Compromise: Since all consumers pulling from the same configuration source process the same rules, a single poisoned entry can compromise multiple service instances simultaneously

This attack is particularly dangerous in microservices environments where configuration centers serve hundreds or thousands of service instances, enabling rapid lateral movement and widespread compromise from a single point of entry.

Detection Methods for CVE-2021-36162

Indicators of Compromise

  • Unexpected YAML type tags (e.g., !!javax.script.ScriptEngineManager) in configuration center entries
  • Unusual process spawning or network connections from Dubbo consumer applications
  • Modifications to routing rules in Zookeeper, Nacos, or other configuration stores by unauthorized accounts
  • Java deserialization-related exceptions in application logs alongside suspicious constructor invocations

Detection Strategies

  • Monitor configuration center audit logs for unauthorized write operations to Dubbo routing rules
  • Implement content inspection for YAML documents containing !! type tag syntax in configuration entries
  • Deploy runtime application self-protection (RASP) solutions to detect and block suspicious class instantiation
  • Use SentinelOne's behavioral AI to identify anomalous process execution patterns from Java applications

Monitoring Recommendations

  • Enable comprehensive audit logging on all configuration centers (Zookeeper ACLs, Nacos access logs)
  • Implement alerting for any modifications to Dubbo routing or configuration override rules
  • Monitor for outbound network connections or process spawning from Dubbo consumer service accounts
  • Track SnakeYAML-related error messages and stack traces indicating potential exploitation attempts

How to Mitigate CVE-2021-36162

Immediate Actions Required

  • Upgrade Apache Dubbo to version 2.7.13 or later for the 2.x branch
  • Upgrade Apache Dubbo to version 3.0.2 or later for the 3.x branch
  • Audit configuration center access controls and revoke unnecessary write permissions
  • Review existing routing rules for suspicious YAML content containing type tags

Patch Information

Apache has addressed this vulnerability in Dubbo versions 2.7.13 and 3.0.2. The fix restricts SnakeYAML's class instantiation capabilities to prevent arbitrary constructor invocation during YAML parsing. Organizations should review the Apache Dubbo Development Thread for detailed information about the security update.

Workarounds

  • Implement strict network segmentation to limit access to configuration centers
  • Deploy authentication and authorization controls on Zookeeper/Nacos with least-privilege principles
  • Consider implementing a configuration validation layer that rejects YAML documents containing type tags
  • Use firewall rules to restrict which hosts can write to configuration center nodes
bash
# Example: Restrict Zookeeper ACLs for Dubbo configuration paths
# Create a digest authentication scheme for Dubbo config paths
zkCli.sh -server localhost:2181
setAcl /dubbo/config digest:dubbo_user:encrypted_password:cdrwa
setAcl /dubbo/config ip:10.0.0.0/8:r

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Dubbo

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Vendor Resources
  • Apache Dubbo Development Thread
  • Related CVEs
  • CVE-2022-39198: Apache Dubbo RCE Vulnerability

  • CVE-2021-30180: Apache Dubbo RCE Vulnerability

  • CVE-2020-1948: Apache Dubbo RCE Vulnerability

  • CVE-2023-46279: Apache Dubbo Deserialization 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