CVE-2026-34982: Vim modeline bypass via various options affects Vim < 9.2.0276
Vulnerability summary
CVE-2026-34982 is a high (CVSS 8.2) vulnerability in vim. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 43.5% of scored vulnerabilities.
Not severe (CVSS 8.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 23 · Related 11Timeline
- 06-04-2026PublishedVulnerability first disclosed.
- 18-09-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- OSV · Red hatEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- NVDNIST8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.46% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat15 products
- vim< 2:9.1.083-6.el10_1.4 | < 2:8.0.1763-22.el8_10.3 | < 2:8.2.2637-23.el9_7.3 | < 2:9.1.083-9.el10_2.2 | < 2:8.2.2637-26.el9_8.4
- vim-common< 2:9.1.083-6.el10_1.4 | < 2:8.0.1763-22.el8_10.3 | < 2:8.2.2637-23.el9_7.3
- vim-common-debuginfo< 2:8.0.1763-22.el8_10.3 | < 2:8.2.2637-23.el9_7.3
- vim-data< 2:9.1.083-6.el10_1.4
- vim-debuginfo< 2:9.1.083-6.el10_1.4 | < 2:8.0.1763-22.el8_10.3 | < 2:8.2.2637-23.el9_7.3
Alpine1 product
- vim< 9.2.0280-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.1230-2+deb13u1 | < 2:9.2.0315-1
Ubuntu1 product
- vim< 2:8.1.2269-1ubuntu5.32+esm3 | < 2:8.2.3995-1ubuntu2.27 | < 2:9.1.0016-1ubuntu7.11 | < 2:9.1.0967-1ubuntu6.2
Vim1 product
- vim< 9.2.0276
5 vendors · 19 products
References
50 links- github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9X Refsource CONFIRMARTICLEREPORTPatchVendor Advisory