Skip to content
VulniPulse
Medium6.5Red Hat Linux

Medium [CVE-2026-59858] Arbitrary command execution via crafted tags file in C omni-completion

This medium-severity Red Hat Linux advisory covers CVE-2026-59858 affecting Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9.

CVE-2026-59858 Published Jul 9, 2026Updated by vendor Jul 9, 2026
Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open vendor advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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.

A command injection vulnerability in Vim's C omni-completion script allows an attacker to execute arbitrary commands if a user is tricked into opening a maliciously crafted tags file and manually invoking the autocomplete feature.

Exploitation requires a user to open a specially crafted C source file along with a malicious project tags file and then invoke C omni-completion. This limits the attack vector as it relies on specific user interaction and the presence of a hostile tags file, making it less likely to be exploited without user awareness.

Red Hat severity: Moderate — CVSS 6.5 (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L). Weakness: CWE-94.

Affected versions
  • < 9.2.0735

Official advisory · high-confidence parse· fetched 8 days ago·verify at source

Fixed versions
  • 9.2.0735
  • vim-2:9.1.083-9.el10_2.12
  • vim-2:9.1.083-5.el10_0.4
  • vim-2:8.0.1763-31.el8_10
  • vim-2:8.2.2637-26.el9_8.13
  • rhcos-4.22.9.8.202608130832-0
  • vim-main-9.2.780-1.hum1
  • insights-proxy/insights-proxy-container-rhel9:1786433656
  • rhui5/cds-kubernetes-rhel9:1786435241
  • rhui5/cds-rhel9:1786533457
  • rhui5/haproxy-rhel9:1786533449
  • rhui5/installer-rhel9:1786435483
  • rhui5/rhua-rhel9:1786533529
  • rhui5/cds-kubernetes-tp-rhel9:1787241211
  • rhui5/installer-tp-rhel9:1787135742
  • rhui5/rhua-tp-rhel9:1787241260
  • RHSA-2026:48650
  • RHSA-2026:55431
  • RHSA-2026:48703
  • RHSA-2026:47982
  • RHSA-2026:54769
  • RHSA-2026:35387
  • RHSA-2026:53371
  • RHSA-2026:54387
  • RHSA-2026:58981

Official advisory · high-confidence parse· fetched 8 days ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • Users are advised to avoid opening untrusted C source files or project tags files in Vim. Exercising caution and only processing trusted content prevents exploitation.

Official advisory · high-confidence parse· fetched 8 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.