CVE-2026-34982
Published:April 06, 2026
Updated:April 20, 2026
Vim is an open source, command line text editor. Prior to version 9.2.0276, a modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The "complete", "guitabtooltip" and "printheader" options are missing the "P_MLE" flag, allowing a modeline to be executed. Additionally, the "mapset()" function lacks a "check_secure()" call, allowing it to be abused from sandboxed expressions. Commit 9.2.0276 fixes the issue.
Affected Packages
https://github.com/vim/vim.git (GITHUB):
Affected version(s) >=v9.0.0000 <v9.2.0276Fix Suggestion:
Update to version v9.2.0276Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.2
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.02