OS Command Injection in Vim - #VU124678

 

OS Command Injection in Vim - #VU124678

Published: March 30, 2026


Vulnerability identifier: #VU124678
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: N/A
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Vim.org
Affected software:
Vim

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to the tabpanel option is missing the P_MLE flag, allowing a modeline to inject a %{expr} expression string without requiring modelineexpr to be enabled. A remote attacker can trick the victim into opening a specially crafted file and execute arbitrary code on the system.


Remediation

Install updates from vendor's website.

Sources