CVE Catalog

CVE-2026-59858

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

4th percentile - higher than 4% of all known CVEs

Summary

In Vim prior to 9.2.0735, the C omni-completion script (ccomplete.vim) improperly interpolates the typeref: or typename: field from a tags file into a :vimgrep pattern executed via :execute. This allows injection of arbitrary Ex commands through a crafted .c file and invoking C omni-completion.

Risk Assessment

An attacker can remotely execute arbitrary commands in the context of the editing user by opening a malicious C source file with a crafted tags file. This leads to full control over the editor session and potentially the entire system.

Recommendation

Immediately update Vim to version 9.2.0735 or later. If updating is not possible, temporarily disable C omni-completion or restrict access to untrusted tags files.

Other vulnerabilities in Vim

See all
Original NVD description (English source)

Vim is an open source, command line text editor. Prior to 9.2.0735, the C omni-completion script in runtime/autoload/ccomplete.vim interpolates the typeref: or typename: extension field of a tags entry, without escaping, into a :vimgrep pattern that is run through :execute. Because :vimgrep honors the bar as a command separator, a crafted tag field can close the search pattern and append an arbitrary Ex command; opening a hostile .c file whose project tags file contains such an entry and invoking C omni-completion runs that command as the editing user. This issue is fixed in version 9.2.0735.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS