Skip to content
RCE Write-up Advanced

Claude AI Discovers Zero-Day RCE in Vim and Emacs: The Dawn of AI

Claude AI was prompted to find zero-day RCE flaws when opening files in Vim and Emacs. It produced proof-of-concept exploits: a crafted markdown file in Vim and a text file inside an archive in Emacs, both leading to arbitrary code execution.

Majid Follow

Published on medium.com

The cybersecurity landscape has just experienced a seismic shift. In a groundbreaking revelation that sounds like science fiction, Anthropic’s Claude AI has successfully discovered zero-day Remote Code Execution (RCE) vulnerabilities in two of the most venerable text editors in existence: Vim and GNU Emacs.

Majid, on medium.com

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 improper handling of file content or modelines that allows code execution when a file is opened.

Impact

An attacker could execute arbitrary code on a victim's machine by getting them to open a crafted file; for Emacs, the maintainers disputed the flaw and did not fix it.

What the attacker needed

Victim opens a crafted file; Vim version 9.2 (for Vim bug); Emacs user extracts an archive

The fix

Vim was patched in version 9.2.0172; Emacs was not fixed because maintainers attributed the issue to Git.

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.

A remote code execution flaw lets an attacker run their own commands on your computer. Here, simply opening a file in a text editor could run malicious code without you doing anything else. The article says an AI tool found these bugs, but it gives no technical details about how they work.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Majid

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.