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

CVE-2021-29442: Alibaba Nacos Auth Bypass Vulnerability

CVE-2021-29442 is an authentication bypass vulnerability in Alibaba Nacos that allows unauthenticated access to management operations on embedded Derby databases. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-29442 Overview

CVE-2021-29442 is an authentication bypass vulnerability in Alibaba Nacos, a platform designed for dynamic service discovery, configuration, and service management. In Nacos versions prior to 1.4.1, the ConfigOpsController allows users to perform management operations including querying the database or completely wiping it out. While the /data/remove endpoint is properly protected with the @Secured annotation, the /derby endpoint lacks authentication protection and can be openly accessed by unauthenticated users.

Critical Impact

Unauthenticated attackers can access sensitive configuration data stored in the embedded Derby database, potentially exposing service configurations, credentials, and other sensitive information managed by Nacos.

Affected Products

  • Alibaba Nacos versions prior to 1.4.1
  • Nacos installations using embedded Derby database storage
  • Not affected: Nacos installations using external storage (e.g., MySQL)

Discovery Timeline

  • 2021-04-27 - CVE-2021-29442 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-29442

Vulnerability Analysis

This vulnerability is classified as CWE-306: Missing Authentication for Critical Function. The core issue lies in inconsistent security annotations within the ConfigOpsController class. While one endpoint (/data/remove) correctly implements authentication via the @Secured annotation, the /derby endpoint was left unprotected, creating an authentication bypass that allows any network-accessible attacker to interact with the embedded database.

The vulnerability only affects Nacos installations using the embedded Derby database for storage. Organizations using external database solutions such as MySQL are not impacted by this specific vulnerability, as the Derby-specific endpoints would not be functional in those configurations.

Root Cause

The root cause is a missing authentication annotation on the /derby endpoint in the ConfigOpsController. This represents an incomplete security implementation where developers protected some sensitive endpoints but inadvertently left others exposed. The @Secured annotation that should have been applied to restrict access to authenticated users was not present on the vulnerable endpoint.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker with network access to the Nacos service can directly send requests to the unprotected /derby endpoint to execute database operations. This could allow the attacker to:

  1. Query the embedded Derby database to extract sensitive configuration data
  2. Access service discovery information and metadata
  3. Potentially retrieve stored credentials or API keys managed through Nacos
  4. Enumerate all services and their configurations registered with Nacos

The vulnerability is exploitable via simple HTTP requests to the vulnerable endpoint, making it trivial for attackers to exploit once they identify an affected Nacos instance.

Detection Methods for CVE-2021-29442

Indicators of Compromise

  • Unexpected HTTP requests to /nacos/v1/cs/ops/derby endpoints from external or unauthorized IP addresses
  • Anomalous database query patterns in Nacos logs indicating enumeration attempts
  • Access logs showing repeated requests to the /derby endpoint without corresponding authentication events
  • Unusual data access patterns indicating bulk extraction of configuration data

Detection Strategies

  • Monitor web server access logs for requests to /nacos/v1/cs/ops/derby from unauthenticated sources
  • Implement network-level monitoring for connections to Nacos management ports from untrusted networks
  • Deploy web application firewall (WAF) rules to detect and block unauthorized access attempts to sensitive Nacos endpoints
  • Review Nacos audit logs for configuration queries that don't correspond to legitimate administrative activity

Monitoring Recommendations

  • Enable detailed access logging on Nacos instances to capture all endpoint access attempts
  • Configure alerting for any access to Derby database endpoints from non-administrative IP ranges
  • Implement network segmentation monitoring to detect unauthorized access attempts to Nacos management interfaces
  • Establish baseline behavior for Nacos API access patterns to identify anomalous activity

How to Mitigate CVE-2021-29442

Immediate Actions Required

  • Upgrade Alibaba Nacos to version 1.4.1 or later immediately
  • Restrict network access to Nacos management interfaces using firewall rules until patching is complete
  • Migrate from embedded Derby storage to external MySQL database if feasible, as this configuration is not affected
  • Audit access logs for any evidence of exploitation prior to patching

Patch Information

The vulnerability has been addressed in Nacos version 1.4.1. The fix adds proper authentication controls to the previously unprotected /derby endpoint. Organizations should upgrade to version 1.4.1 or later to remediate this vulnerability. Technical details of the fix are available in the GitHub Pull Request #4517.

Additional information can be found in the GitHub Security Advisory and the GitHub Issue Discussion.

Workarounds

  • Implement network-level access controls to restrict access to Nacos management endpoints to trusted IP addresses only
  • Deploy a reverse proxy with authentication in front of Nacos to add an additional authentication layer
  • Consider migrating to external MySQL storage which is not affected by this specific vulnerability
  • Use firewall rules to block external access to the /nacos/v1/cs/ops/derby endpoint until patching is completed
bash
# Example firewall rule to restrict Nacos access (iptables)
# Allow access only from trusted admin network
iptables -A INPUT -p tcp --dport 8848 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8848 -j DROP

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAlibaba Nacos

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability94.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-306
  • Technical References
  • GitHub Security Advisory

  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2021-29441: Alibaba Nacos Auth Bypass 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