CVE-2025-6514CWE-78

OS command injection in mcp-remote when connecting to untrusted MCP servers

Critical · published July 9, 2025

Patch now

High probability of exploitation

CVSS calls it critical at 9.6. It sits in the 99.6th percentile for exploit probability.

CVSS v3.1
9.6
EPSS
77%
Percentile
99.6
In the wild
Unconfirmed
What it is

🚨 A sneaky command injection lurks in mcp-remote when connecting to untrusted MCP servers—perfect for the crafty attacker looking to exploit your system! 🔥 Think of it like a restaurant accepting orders from a sketchy food delivery service that could slip in any dish they want—one wrong order could lead to a disastrous meal! If an attacker exploits this vulnerability, they could execute arbitrary OS commands, potentially gaining full control over your system. This means they could access sensitive data, manipulate files, or even cause total service disruption. Absolutely devastating!

Put simply

Think of it like a restaurant accepting orders from a sketchy food delivery service that could slip in any dish they want—one wrong order could lead to a disastrous meal! This vulnerability arises from unvalidated input in the authorization_endpoint response URL, allowing attackers to inject malicious commands that the server unwittingly executes.

What to do

If an attacker exploits this vulnerability, they could execute arbitrary OS commands, potentially gaining full control over your system. This means they could access sensitive data, manipulate files, or even cause total service disruption. Absolutely devastating! To protect against this, patch mcp-remote to the latest version immediately. Ensure input validation and sanitize all incoming data from untrusted sources. Regularly audit your server connections to prevent future attacks. You've got this! Following these steps will help you secure your system and banish this vulnerability for good! 🛡️

The record
Technical detail
CVSS v3.1
9.6 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.77027 · 99.6th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-07-09T12:41Z
EPSS history
Timeline
  • 09 JUL 12:41Z
    OS command injection in mcp-remote when connecting to untrusted MCP servers
    cvelistv5