I reproduced a Claude Code RCE. The bug pattern is everywhere
A security researcher has reproduced a remote code execution (RCE) vulnerability found in Claude Code, revealing a common bug pattern in AI tools. The vulnerability was linked to how command-line arguments were processed, allowing attackers to inject malicious settings. Although the issue has been fixed, the underlying parsing flaw remains prevalent across various AI developer tools.
- ▪The RCE vulnerability was first published by security researcher Joernchen.
- ▪The bug was related to the eager parsing of command-line flags without proper context awareness.
- ▪Attackers could exploit the flaw by injecting malicious settings through a deeplink handler.
Opening excerpt (first ~120 words) tap to expand
Vechron > Tech > I reproduced a Claude Code RCE. The bug pattern is everywhere. Tech I reproduced a Claude Code RCE. The bug pattern is everywhere. Last updated: 2026/05/23 at 1:18 PM Piyush Gupta Share 6 Min Read I reproduced a Claude Code RCE and found the same bug pattern in other AI tools. SHARE Last week, security researcher Joernchen published a clever RCE in Claude Code 2.1.118. I spent Saturday reproducing it from the advisory to understand the pattern. The bug is fixed now, but the parsing anti-pattern behind it is everywhere in AI developer tools. The setup Claude Code registers a deeplink handler: claude-cli://open. Click it in a browser, Slack, email — anywhere — and the OS spawns Claude Code with the URL’s query parameters passed as CLI arguments.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Vechron.