RCE in Vim

CVE-2026-34982

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.

EPSS exploit prediction

EPSS: 0.003 (17.6th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 18th percentile — 17.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-34982: held from 0.005 to 0.003.

EPSS over last 30 days · oldest: 0.005 · newest: 0.003 · change: -0.002

Affected products

  • Vim — versions < 9.2.0276

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-34982?
CVE-2026-34982 is a high-severity vulnerability in Vim, classified under OS Command Injection. CVSS score: 8.2/10. Published 2026-04-06.
How severe is CVE-2026-34982?
High severity. CVSS v3 base score is 8.2 out of 10.