All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

MCP Authentication Flaws Enable Remote Code Execution in Claude Code and Gemini CLI

By

stuxf

8mo ago· 11 min readenInsight

Summary

Security researchers discovered that connecting to a malicious MCP (Model Context Protocol) server via coding tools like Claude Code and Gemini CLI could allow attackers to gain remote code execution (RCE) on users' computers. The exploit leverages authentication flaws in the MCP protocol implementation, enabling attackers to execute arbitrary commands on victim machines. The article demonstrates the vulnerability by showing how an attacker could open the calculator app ("popping calc") on a target's computer through Claude Code, and warns that the exploit could be extended for more malicious purposes.

Key quotes

· 3 pulled
During our security testing, we discovered that connecting to a malicious MCP server via common coding tools like Claude Code and Gemini CLI could give attackers instant control over user computers.
"Popping calc" is a harmless way of showcasing remote code execution.
The exploits we found can be extended for malicious purposes beyond that.
Snippet from the RSS feed
How MCP Authentication Flaws Enable RCE in Claude Code, Gemini CLI, and More

You might also wanna read