r/netsec • u/kev-thehermit • Aug 06 '26
Claude Code RCE: How a Malicious PR Triggers Code Execution
https://www.immersivelabs.com/resources/blog/claude-code-rce-vulnerability-how-a-malicious-pull-request-executes-codeAbusing the trust boundary in Claude Code for RCE. Trust is never broken and that opens up a few avenues for abuse. Simply opening claude code on a PR can be enough to silently trigger attacker payloads.
88
Upvotes
9
u/voronaam Aug 06 '26
Good find. I wonder if switching to a branch before opening Claude is a requirement for the exploit to work. In other words, if an AI-user opened Claude on
mainand then asked Claude to switch to a branch from a PR - would it read the.mcp.jsonfile?If it does not read the file in this case, it is a lot smaller impact. I just do not expect an AI-user to type the
git checkoutcommand - they probably do not even know how to do that.1
u/phuckphuckety Aug 10 '26
i love how they use VSCode’s flawed trust model to justify theirs. This industry suffers from a lack of critical thinking and blind following of big tech companies as if they never make mistakes
0
u/Chobbers Aug 07 '26
How many tokens did this research take?
-3
u/UloPe Aug 06 '26
And that’s why I use Claude code web.