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
- https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9 (Patch, Vendor Advisory)
- https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615 (Patch)
- https://github.com/vim/vim/releases/tag/v9.2.0276 (Release Notes)
- www.openwall.com/lists/oss-security/2026/04/01/1 (Mailing List, Patch, Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:11389
- access.redhat.com/errata/RHSA-2026:11509
- access.redhat.com/errata/RHSA-2026:11510
- access.redhat.com/errata/RHSA-2026:19073
- access.redhat.com/errata/RHSA-2026:19224
- access.redhat.com/errata/RHSA-2026:21275