Skip to content
AI / LLM Write-up Advanced

You’re Not Watching MCPs. Anthropic’s Vulnerability Shows Why You Should Be.

A design flaw in Anthropic's Model Context Protocol SDK allows a crafted prompt to redirect the STDIO interface to execute arbitrary OS commands, leading to remote code execution. An attacker could gain database credentials, API keys, and a shell on systems running vulnerable MCP implementations.

salt.security

Published on salt.security

Last week, researchers at OX Security published findings that should stop every security leader in their tracks. They discovered a critical vulnerability baked directly into Anthropic's Model Context Protocol SDK, affecting every supported language: Python, TypeScript, Java, and Rust.

Roey Eliyahu, CEO & Co-founder, on salt.security

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the MCP protocol's STDIO interface allows arbitrary OS command execution with minimal authentication, and the design was not changed.

Impact

An attacker could execute arbitrary OS commands, access sensitive data, API keys, and databases, and gain a live shell, with no authentication required and no alerts fired.

What the attacker needed

Public-facing interface; vulnerable MCP implementation; crafted prompt

The fix

Anthropic declined to change the underlying architecture, so the issue remains unfixed at the protocol level; some vendors have issued patches.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

MCP is a way for AI agents to connect to tools and data. The flaw means a malicious prompt can make the agent run commands on the server, giving an attacker control. This is dangerous because the agent already has access to sensitive systems.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.