Skip to main content

Vim EUVDEUVD-2026-25575

| CVE-2026-41411 MEDIUM
OS Command Injection (CWE-78)
2026-04-24 security-advisories@github.com
6.6
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver malicious tags file
  2. Delivery
    User opens or clones repository
  3. Exploit
    User invokes tag-jump command
  4. Execution
    Vim parser encounters backtick syntax
  5. Persist
    Shell executes embedded command
  6. Impact
    Attacker gains code execution as Vim user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires a malicious or compromised tags file accessible to the Vim user, and the user must actively invoke tag resolution via tag-jump commands (Ctrl-], :tag, :tjump, etc.) or navigate to a tag. The filename field in the tags file must contain backtick syntax (e.g., command or variations like $(command) if shell expansion applies). Default Vim configurations are vulnerable - no special configuration enables or disables the flaw. However, exploitation is limited to local attack vector; remote attackers cannot trigger tag resolution without first gaining local file system access or convincing a user to open a malicious tags file. Requires user interaction to invoke tag navigation.

Impact

CVSS 6.6 with local attack vector (AV:L), low complexity (AC:L), and no privilege requirement (PR:N) indicates a moderately severe vulnerability with practical exploitability. The user interaction requirement (UI:R) - opening a tags file or navigating via tag command - reduces immediate risk in automated scenarios but is realistic in typical development workflows where users interact with project-specific tags files or accept tags from version control. The integrity impact (I:H) and confidentiality/availability impact confirm command execution severity. No EPSS score, KEV status, or POC confirmation provided in input, so real-world exploitation likelihood cannot be cross-referenced against automated threat models. However, the straightforward injection mechanism (backtick syntax is standard shell metacharacter) and the requirement for only user interaction (not authentication or special privileges) suggest moderate practical exploitability if adversaries can deliver malicious tags files. Local-only attack vector limits scope compared to network-based injection but remains significant in development environments, Git repositories, or shared systems where tags files are distributed.

Exploit ScenarioDerived

A developer clones a malicious Git repository containing a crafted .tags or tags file with a filename field like rm -rf /tmp/important_data. When the developer uses Ctrl-] to jump to a tag definition or runs :tag command in Vim, the tag resolver expands the backtick syntax and executes the embedded command with the developer's privileges, potentially deleting files or exfiltrating data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 24, 2026

Command injection in Vim's tag file processing allows local attackers to execute arbitrary shell commands with user privileges when resolving tags containing backtick syntax. Versions prior to 9.2.0357 are affected. The vulnerability requires user interaction (opening a crafted tags file or navigating to a tag), but once triggered, grants full command execution capability in the context of the Vim process.

RemediationAI

Upgrade to Vim 9.2.0357 or later from https://github.com/vim/vim/releases/tag/v9.2.0357. Patch details are available in the security advisory at https://github.com/vim/vim/security/advisories/GHSA-cwgx-gcj7-6qh8. As an interim compensating control, users should audit tags files for backtick syntax (command substitution patterns) before opening or navigating tags, particularly from untrusted sources or public repositories. Additionally, restricting write access to tags files to trusted users and scanning version control systems for malicious tags entries can reduce attack surface. Note that disabling tag functionality entirely (via setting 'tags=' to empty) eliminates the vulnerability but removes tag-jump convenience features.

Affected VersionsENISA

vim < 9.2.0357

Affected Packages

euvd vim fix: 9.2.0357

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Vim's tag resolution mechanism processes tag files to navigate code definitions. The vulnerability resides in the filename field parsing logic, where wildcard expansion is applied to resolve environment variables and glob patterns. When this expansion encounters backtick syntax (command substitution, a shell metacharacter), the embedded command is executed via system shell invocation rather than being treated as literal filename text. This occurs during tag lookup when users press Ctrl-] or similar tag-jump commands. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) identifies the root cause: insufficient input validation and sanitization before shell command construction.

Know when Vim gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.6 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
SUSE MEDIUM
Red Hat 7.3 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low

Lifecycle Timeline

3
Patch released
Apr 27, 2026 - 13:39 nvd
Patch available
Patch available
Apr 24, 2026 - 18:01 EUVD
CVE Published
Apr 24, 2026 - 17:16 nvd
MEDIUM 6.6

DescriptionGitHub Advisory

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 67% exploitable
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +33
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Vim

View all
CVE-2022-3520 CRITICAL POC
9.8 Dec 02

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0765. Rated critical severity (CVSS 9.8), this vuln

CVE-2022-0729 HIGH POC
8.8 Feb 23

Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4440. Rated high severity (CVSS 8.8), this

CVE-2026-34714 HIGH POC
8.6 Mar 30

Code execution vulnerability in Vim before 9.2.0272 allows attackers to gain immediate arbitrary command execution upon

CVE-2019-12735 HIGH POC
8.6 Jun 05

getchar.c in Vim before 8.1.1365 and Neovim before 0.3.6 allows remote attackers to execute arbitrary OS commands via th

CVE-2021-3968 HIGH POC
8.0 Nov 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 8.0), this vulnerability is remotely exploita

CVE-2022-1616 HIGH POC
7.8 May 07

Use after free in append_command in GitHub repository vim/vim prior to 8.2.4895. Rated high severity (CVSS 7.8), this vu

CVE-2022-1619 HIGH POC
7.8 May 08

Heap-based Buffer Overflow in function cmdline_erase_chars in GitHub repository vim/vim prior to 8.2.4899. Rated high se

CVE-2021-4136 HIGH POC
7.8 Dec 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2021-3973 HIGH POC
7.8 Nov 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2021-3927 HIGH POC
7.8 Nov 05

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2022-2125 HIGH POC
7.8 Jun 19

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2. Rated high severity (CVSS 7.8), this vulnerability

CVE-2022-2126 HIGH POC
7.8 Jun 19

Out-of-bounds Read in GitHub repository vim/vim prior to 8.2. Rated high severity (CVSS 7.8), this vulnerability is no a

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed
SLES15-SP6-CHOST-BYOS-EC2 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy