Skip to content
VulniPulse
Advisory severityMedium6.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 6 Extended Lifecycle Support - EXTENSION, Red Hat Enterprise Linux 7 Extended Lifecycle Support.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2026-59858 Source published Source updated

VulniPulse record published Record updated

CVE-2026-59858
Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open source advisory

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.

Is CVE-2026-59858 exploited?

No exploitation is reported in the sources VulniPulse tracks: CVE-2026-59858 is not in the CISA KEV catalog (checked ) and this advisory does not report exploitation. That is not proof the vulnerability cannot be exploited.

How do I fix CVE-2026-59858?

Upgrade to a fixed release named by Red Hat:

  • 9.2.0735
  • vim-2:9.1.083-9.el10_2.12
  • vim-2:9.1.083-5.el10_0.4
  • vim-2:7.4.629-5.el6_10.4
  • vim-2:7.4.629-8.el7_9.2
  • vim-2:8.0.1763-31.el8_10
  • vim-2:8.2.2637-26.el9_8.13
  • vim-2:8.2.2637-20.el9_2.3
  • vim-2:8.2.2637-20.el9_4.4
  • vim-2:8.2.2637-22.el9_6.4
  • openshift/ose-rhel-coreos-9:4.22.9.8.202608130832-0
  • rhaiis/model-opt-cuda-rhel9:1790621714

38 more fixed releases are listed below.

Confirm against the vendor advisory before you patch.

Affected versions
  • < 9.2.0735

Official advisory · high-confidence parse· fetched 9 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:7.4.629-5.el6_10.4
  • vim-2:7.4.629-8.el7_9.2
  • vim-2:8.0.1763-31.el8_10
  • vim-2:8.2.2637-26.el9_8.13
  • vim-2:8.2.2637-20.el9_2.3
  • vim-2:8.2.2637-20.el9_4.4
  • vim-2:8.2.2637-22.el9_6.4
  • openshift/ose-rhel-coreos-9:4.22.9.8.202608130832-0
  • rhaiis/model-opt-cuda-rhel9:1790621714
  • rhaiis/vllm-cuda-rhel9:1790621718
  • rhaiis/vllm-rocm-rhel9:1790621713
  • rhaii/vllm-rocm-rhel9:1791425869
  • rhaii/vllm-gaudi-rhel9:1791427182
  • rhaii/model-opt-cuda-rhel9:1791803821
  • rhaii/vllm-cuda-rhel9:1791473631
  • rhaii/vllm-spyre-rhel9:1791818357
  • rhaii/vllm-cpu-rhel9:1791473614
  • vim-main-9.2.780-1.hum1
  • insights-proxy/insights-proxy-container-rhel9:1786433656
  • rhai/base-image-rocm-rhel9:1790276886
  • rhai/base-image-tpu-rhel9:1790276884
  • rhai/base-image-cpu-rhel9:1790277045
  • rhai/base-image-spyre-rhel9:1790276889
  • rhai/base-image-cuda-rhel9:1790276974
  • rhai/base-image-tpu-rhel9:1790703497
  • rhai/base-image-rocm-rhel9:1790703506
  • rhai/base-image-cpu-rhel9:1790703590
  • rhai/base-image-spyre-rhel9:1790703568
  • rhai/base-image-cuda-rhel9:1790703586
  • rhai/base-image-rocm-rhel9:1790703494
  • rhai/base-image-cpu-rhel9:1790703615
  • rhai/base-image-tpu-rhel9:1790703516
  • rhai/base-image-rocm-6.4-rhel9:1790703524
  • rhai/base-image-cuda-13.0-rhel9:1790703601
  • rhai/base-image-rocm-7.0-rhel9:1790703516
  • rhai/base-image-cuda-12.9-rhel9:1790703608
  • rhai/base-image-spyre-rhel9:1790703579
  • rhai/base-image-neuron-rhel9:1790703516
  • RHSA-2026:48650
  • RHSA-2026:55431
  • RHSA-2026:69128
  • RHSA-2026:68711
  • RHSA-2026:48703
  • RHSA-2026:47982
  • RHSA-2026:72466
  • RHSA-2026:72465
  • RHSA-2026:70818

Official advisory · high-confidence parse· fetched 9 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 9 days ago·verify at source

Get an email when Red Hat RHEL & SELinux publishes the next one.

See Red Hat RHEL & SELinux's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).

Alert me about Red Hat RHEL & SELinux
All Red Hat Linux advisories

iPhone and Android apps · New on the App Store

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 34 official vendor sources and 160+ reviewed platform categories.

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.