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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"vim:vim": [
"< 9.2.0735"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59858",
"id": "CVE-2026-59858",
"imported": "2026-12-02T14:11:18.594Z",
"modified": "2026-07-14T05:16:19.603Z",
"published": "2026-07-09T23:17:06.740Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-59858"
},
{
"affected": {
"vim:vim": [
"< 9.2.0735"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-42752",
"id": "EUVD-2026-42752",
"imported": "2026-12-02T14:11:19.992Z",
"modified": "2026-07-14T03:55:38Z",
"published": "2026-07-09T22:37:52Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-42752"
}
]
}