Skip to content
MediumNewsLLM-specific

Vim and GNU Emacs: Claude Code helpfully found zero-day exploits for both

Published
Record updated
View JSON

Summary

Researcher Hung Nguyen of AI red teaming company Calif used simple prompts to Anthropic's Claude Code to find zero-day remote code execution flaws in Vim and GNU Emacs. In Vim, Claude Code identified missing security checks (P_MLE and P_SECURE) in the tabpanel sidebar and in autocmd_add(), then produced a proof-of-concept that bypassed the Vim sandbox by getting a target to open a malicious file. A separate Emacs flaw, dating to 2018, lets opening a file inside a directory with a crafted .git/ folder execute attacker-controlled commands through Git.

Mitigation

Vim's maintainers fixed the issue, tracked as CVE-2026-34714 (CVSS 9.2), in version 9.2.0272. The GNU Emacs maintainers declined to fix the issue, which has no CVE identifier, and believe it is a Git problem; Nguyen suggests manual mitigations, but the source does not describe them.