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 over last 30 days · oldest: 0.005 · newest: 0.003 · change: -0.002
Affected products
- Vim — versions < 9.2.0276
Weakness classification (CWE)
References
- github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9 (Patch, Vendor Advisory)
- github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615 (Patch)
- github.com/vim/vim/releases/tag/v9.2.0276 (Release Notes)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Patch, Third Party Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
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.