Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/nanaao/cve-2021-29442-nacos-derby-rce-exp
Vulnerability AnalysisExploitationWeb Application ExploitationCommand and ControlRemote Access ToolDatabase Security
GitHubnanaao/cve-2021-29442-nacos-derby-rce-exp

cve-2021-29442-Nacos-Derby-rce-exp

Nacos Derby命令执行漏洞利用脚本

View Repository
11122 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    647
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    421
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    389
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    333
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    331

Explore all tools

Browse our collection of tools

View all tools →
Share

Introduction

Nacos Derby command execution vulnerability exploitation script, by default uses User-Agent bypass to exploit the vulnerability

Nacos is an open-source platform for service registration, discovery, and configuration management. In its early versions (≤2.4.0-BETA), Nacos integrates Apache Derby as the embedded database by default. Since the Derby database does not have access control set by default, attackers can access specific interfaces without authorization, execute arbitrary SQL statements, and ultimately achieve remote command execution.

Vulnerability Principle:

  1. Unauthenticated Access: Under default configuration, Nacos's Derby database interface has no access control, allowing anyone to access it.

  2. SQL Injection: Attackers send malicious SQL queries to Nacos's Derby interface via specific HTTP requests. For example, access the following URL:

    http://<Nacos服务器地址>:8848/nacos/v1/cs/ops/derby?sql=select * from users
    

    This will return all data in the users table.

  3. Remote Command Execution: More critically, attackers can leverage Derby's specific features to execute arbitrary code via SQL statements. For example, using the CALL statement to load a remote malicious JAR package and execute code within it, thereby executing arbitrary commands on the victim server.

Remediation measures:

  • Upgrade Nacos: The official team has fixed this vulnerability in the latest version; it is recommended to upgrade Nacos to the latest version.

  • Disable Derby Interface: If not using an embedded database, it is recommended to disable the Derby interface to prevent unauthorized access.

  • Enable Authentication: Configure Nacos's authentication mechanism to ensure only authorized users can access related interfaces.

Exploitation of this vulnerability can lead to data leakage, service interruption, and even complete server compromise, causing significant harm. Therefore, affected users are strongly advised to take the above measures as soon as possible to protect themselves.

POC/EXP - Usage

nacos_derby_rce.py [-h] -u URL [-a TOKEN]
Download Tool