Skip to content
MediumNewsLLM-specific

Claude AI finds Vim, Emacs RCE bugs that trigger on file open

Published
Record updated
View JSON

Summary

Researcher Hung Nguyen of Calif used Claude to find remote code execution flaws in Vim and GNU Emacs that trigger simply by opening a file. In Vim, unsafe modeline handling let embedded code run and escape its sandbox, affecting all versions up to 9.2.0271; the maintainers released a patch in 9.2.0272. GNU Emacs remains unpatched because its maintainers attribute the issue to Git's handling of the core.fsmonitor setting in attacker-supplied .git/config files.

Mitigation

Vim: fixed in version 9.2.0272. GNU Emacs: no fix is available in the latest version; users are advised to exercise caution when opening files from unknown sources or downloaded online. Nguyen suggested that GNU Emacs explicitly block 'core.fsmonitor' in its Git calls.