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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-09 · Modified: 2026-07-14
- Aliases: ALPINE-CVE-2026-59858, UBUNTU-CVE-2026-59858, DEBIAN-CVE-2026-59858
- Record: https://cvemate.com/vulnerability/CVE-2026-59858 · JSON: https://cvemate.com/vulnerability/CVE-2026-59858/json

## Description

```text
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.
```

## Signals

- CVSS: 8.4 high (v4.0, CVE.org) 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
- EPSS: 0.137%, percentile 3.314%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.2.0854-r0 \| \< 9.2.0735-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.1230-2+deb13u1 \| \< 2:9.2.0782-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm31 \| \< 2:7.4.1689-3ubuntu1.5+esm37 \| \< 2:8.0.1453-1ubuntu1.13+esm22 \| \< 2:8.1.2269-1ubuntu5.32+esm10 \| \< 2:8.2.3995-1ubuntu2.34 \| \< 2:9.1.0016-1ubuntu7.18 \| \< 2:9.1.2141-1ubuntu4.7
- vim vim: \< 9.2.0735

## References

- <https://github.com/vim/vim/security/advisories/GHSA-mf92-v4xw-j45x>
- <https://github.com/vim/vim/commit/6b611b0d15603c52ebdad17172b0232b4f65704e>
- <https://security.alpinelinux.org/vuln/CVE-2026-59858>
- <https://ubuntu.com/security/CVE-2026-59858>
- <https://www.cve.org/CVERecord?id=CVE-2026-59858>
- <https://ubuntu.com/security/notices/USN-8541-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-59858>

---

Data as of 2026-12-05T04:45:35.834Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
