CVE Explore

RCE in Vim

CVE-2026-34982

CVSS v3
8.2 High
Public exploits
None known
EPSS
0.005 · 40.4th percentile
Published
2026-04-06

What to do

Fixed in
9.2.0276
Affected
1 affected product

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.

Vulnerability class: Command Injection (OS Command Injection)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.

Attack Vector
Local AV:L
Attack Complexity
Low AC:L
Privileges Required
None PR:N
User Interaction
Required UI:R
Scope
Changed S:C
Confidentiality
High C:H
Integrity
High I:H
Availability
None A:N

EPSS exploit prediction

EPSS 0.005, 40.4th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Vim — versions < 9.2.0276

Weakness classification (CWE)

References