CVE-2026-34982: vim OS Command Injection
Vulnerability summary
CVE-2026-34982 is a high (CVSS 8.2) OS Command Injection vulnerability in vim. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 18.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 21 · 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.27%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
-0.20 pp
From 0.47% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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.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