Skip to main content

Vim CVE-2026-44656

MEDIUM
OS Command Injection (CWE-78)
2026-05-08 GitHub_M
4.6
CVSS 4.0 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
4.6 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
4.4 MEDIUM

AV:L because exploitation occurs in local file-open context; PR:N since attacker provides file content without needing system privileges; UI:R for two-step victim interaction; C:L/I:L for user-level command execution with no scope change.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE
4.4 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Red Hat
5.3 MEDIUM
qualitative

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
A
Scope
X

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 24, 2026 - 00:21 vuln.today
Analysis Generated
Jul 24, 2026 - 00:21 vuln.today
CVSS changed
May 08, 2026 - 23:22 NVD
4.6 (MEDIUM)
CVE Published
May 08, 2026 - 22:40 nvd
MEDIUM 4.6

DescriptionCVE.org

Vim is an open source, command line text editor. Prior to version 9.2.0435, an OS command injection vulnerability exists in Vim's :find command-line completion. When the path option contains backtick-enclosed shell commands, those commands are executed during file name completion. Because the path option lacks the P_SECURE flag, it can be set from a modeline, allowing an attacker who controls the contents of a file to execute arbitrary shell commands when the user opens that file in Vim and triggers :find completion. This issue has been patched in version 9.2.0435.

AnalysisAI

OS command injection in Vim's ':find' tab-completion mechanism allows an attacker who controls a file's contents to execute arbitrary shell commands under the victim's user account, by exploiting the missing P_SECURE flag on the 'path' option prior to version 9.2.0435. Because 'path' lacked this flag, a file modeline could inject backtick-wrapped shell commands that Vim silently executed during file-name completion. No active exploitation has been confirmed (SSVC: Exploitation none, EPSS 0.04%), and the vendor-released patch is available in Vim 9.2.0435.

Technical ContextAI

Vim's 'path' option specifies directories searched by commands like ':find' and 'gf'. When a path entry contains Unix backtick expressions (e.g., 'id'), Vim expands them by invoking the enclosed shell command - standard backtick substitution. Vim's internal 'P_SECURE' flag (defined in 'optiondefs.h') is the mechanism that prevents an option from being set via modelines (file-embedded configuration directives). CWE-78 (Improper Neutralization of Special Elements used in an OS Command) applies because Vim passed unvalidated backtick content from the 'path' option directly to shell expansion in 'expand_path_option()' in 'src/findfile.c'. The fix, per the commit at https://github.com/vim/vim/commit/190cb3c2b9c769a3972bcfd991a7b5b6cb771ef0, adds 'P_SECURE' to the 'path' option definition and inserts an explicit guard in 'expand_path_option()' to skip any path entry containing a backtick character. Affected products are identified by CPE 'cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*', covering all Vim releases before 9.2.0435.

RemediationAI

Upgrade Vim to version 9.2.0435 or later, the vendor-released patch confirmed at https://github.com/vim/vim/releases/tag/v9.2.0435. Ubuntu users should apply the update described in USN-8304-1 at https://ubuntu.com/security/notices/USN-8304-1. As a pre-patch workaround, disable modeline processing by adding 'set nomodeline' to ~/.vimrc - this prevents any file from setting 'path' via embedded modelines, eliminating the injection vector entirely. The trade-off is that legitimate per-file configuration that developers rely on (file-type settings, indentation, etc.) will no longer be applied automatically. A more targeted alternative is enabling 'modelinestrict' ('set modelinestrict'), which restricts modelines to a reduced safe set of options; however, until the patch is applied, 'path' is not in that safe set, so 'nomodeline' remains the more reliable control.

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-2023-4735 HIGH POC
7.8 Sep 02

Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.1847. Rated high severity (CVSS 7.8), this vulnerability i

CVE-2023-4781 HIGH POC
7.8 Sep 05

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

CVE-2023-4734 HIGH POC
7.8 Sep 02

Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.1846. Rated high severity (CVSS 7.8), this vuln

CVE-2023-4733 HIGH POC
7.8 Sep 04

Use After Free in GitHub repository vim/vim prior to 9.0.1840. Rated high severity (CVSS 7.8), this vulnerability is no

CVE-2023-4750 HIGH POC
7.8 Sep 04

Use After Free in GitHub repository vim/vim prior to 9.0.1857. Rated high severity (CVSS 7.8), this vulnerability is no

CVE-2023-4736 HIGH POC
7.8 Sep 02

Untrusted Search Path in GitHub repository vim/vim prior to 9.0.1833. Rated high severity (CVSS 7.8), this vulnerability

CVE-2023-2610 HIGH POC
7.8 May 09

Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.1532. Rated high severity (CVSS 7.8), this vuln

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

Share

CVE-2026-44656 vulnerability details – vuln.today

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