CVE-2026-41411

Vim: Command injection via backtick expansion in tag filenames

Published Apr 24, 2026 CVSS 3.1 · 6.6 Medium EPSS < 1% KEV · Not listed
Description
Vim is an open source, command line text editor. Prior to 9.2.0357, A command injection vulnerability exists in Vim's tag file processing. When resolving a tag, the filename field from the tags file is passed through wildcard expansion to resolve environment variables and wildcards. If the filename field contains backtick syntax (e.g., `command`), Vim executes the embedded command via the system shell with the full privileges of the running user.

Analysis

AI-generated

Technical impact

Vim processes tag files used to navigate code. In versions prior to 9.2.0357, the filename field from a tag entry undergoes wildcard expansion, which allows backtick syntax (e.g., `command`) to be interpreted and executed by the underlying shell. This flaw falls under CWE‑78 and results in arbitrary command execution with the privileges of the user running Vim.

Affected Systems

All installations of Vim supplied by the Vim project, specifically any releases before 9.2.0357. The vulnerability is exploitable on any system where a user has read access to a tags file they can influence or where a malicious tag file is introduced.

Risk and Exploitability

The CVSS score of 6.6 indicates moderate severity. The EPSS score (<1%) suggests low current exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires local access and the ability to craft or modify a tags file; it does not provide network‑level intrusion. Given its local execution nature, the risk is confined to the privileges of the Vim user. Potential attackers could gain confidentiality, integrity, or availability by running arbitrary commands on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vim to version 9.2.0357 or later, which removes backtick handling from tag filenames.
  • If an upgrade is not immediately possible, ensure that tags files are not writable by untrusted users and consider restricting the Vim environment using the 'secure' mode (set secure) to limit shell command execution.
  • Regularly review and sanitize tags files in shared or multi‑user environments, and monitor for unexpected entries containing backticks.

Generated by OpenCVE AI on April 28, 2026 at 13:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8342-1 Vim vulnerability
Ubuntu USN Ubuntu USN USN-8246-1 Vim vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Vim
Vim vim
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Vendors & Products Vim
Vim vim
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Vim is an open source, command line text editor. Prior to 9.2.0357, A command injection vulnerability exists in Vim's tag file processing. When resolving a tag, the filename field from the tags file is passed through wildcard expansion to resolve environment variables and wildcards. If the filename field contains backtick syntax (e.g., `command`), Vim executes the embedded command via the system shell with the full privileges of the running user.
Title Vim: Command injection via backtick expansion in tag filenames
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 6.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 28, 2026, 12:50 PM
Reserved
Apr 20, 2026, 3:32 PM
Status
Analyzed
Published
Apr 24, 2026, 5:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 24, 2026, 4:51 PM