CVE-2025-66401CWE-78command-injection

CVE-2025-66401

Critical · published December 2, 2025

CVSS v3.1
9.8
EPSS
2%
Percentile
82.6
In the wild
Unconfirmed
What it is

🚨 A critical command injection vulnerability in MCP Watch lets attackers run arbitrary commands on your server with just a sneaky URL! 🔥 Think of it like a restaurant that blindly accepts any food order without verifying the ingredients; if a customer slips in something dangerous, the kitchen could end up serving a hazardous dish. In this case, the command being executed is like an unsuspecting chef cooking up chaos in your system! An attacker exploiting this vulnerability could potentially take full control of your host machine, executing any command they desire. Imagine them snooping around, stealing sensitive data, or even outright destroying your system — it's absolutely devastating! This is a scenario no one wants to face, especially given the potential exposure of sensitive information.

Put simply

Think of it like a restaurant that blindly accepts any food order without verifying the ingredients; if a customer slips in something dangerous, the kitchen could end up serving a hazardous dish. In this case, the command being executed is like an unsuspecting chef cooking up chaos in your system! The flaw lies in the MCPScanner class, where the cloneRepo method directly passes a user-supplied 'githubUrl' argument to a system shell using execSync without any sanitization. This allows attackers to craft a malicious URL, appending shell metacharacters to execute arbitrary commands on the host system.

What to do

An attacker exploiting this vulnerability could potentially take full control of your host machine, executing any command they desire. Imagine them snooping around, stealing sensitive data, or even outright destroying your system — it's absolutely devastating! This is a scenario no one wants to face, especially given the potential exposure of sensitive information. To protect your environment, update MCP Watch to version 0.1.3 or later immediately. Additionally, sanitize all inputs to the execSync function or implement strict validation on the provided URL to prevent injection attacks. Don't delay—this is crucial! You've got this! A quick update will secure your servers and keep your environment safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02227 · 82.6th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-12-02T04:15Z
Affected products (1)
ProductVersionsFixed in
kapilduraphe/mcp_watch≤ 0.1.2—
References (2)
EPSS history
Timeline
  • 01 DEC 22:43Z
    MCP Watch has a Critical Command Injection in cloneRepo allows Remote Code Execution (RCE) via malicious URL
    cvelistv5