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

Published Jul 9, 2026
·
Updated

Last updated 13 July 2026

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
vim<9.2.0735
vim Vim<9.2.0735
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2, <=2:9.2.0524-1
2:9.2.0782-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:9.2.0782-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.2.0735

Event History

Jul 9, 2026
CVE Published
via MITRE·10:37 PM
Data Sourced
via MITRE·10:37 PM
DescriptionWeakness
Data Sourced
via Red Hat·11:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 14, 2026
Data Sourced
via Ubuntu·08:29 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·08:30 PM
DescriptionAffected Software
Data Sourced
via Launchpad·08:30 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2026-59858?

CVE-2026-59858 has a high severity rating of 8.4 according to the CVSS.

2

What type of vulnerability is CVE-2026-59858?

CVE-2026-59858 is classified as a Code Injection vulnerability.

3

How do I fix CVE-2026-59858?

To fix CVE-2026-59858, update Vim to version 9.2.0735 or later.

4

What software is affected by CVE-2026-59858?

CVE-2026-59858 affects the Vim open-source command line text editor.

5

What can an attacker achieve with CVE-2026-59858?

An attacker can execute arbitrary code through the C omni-completion script in Vim.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203