CVE-2026-34982
Last modified
CVE-2026-34982 is a high-severity vulnerability rated 8.2/10 on the CVSS scale. 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. EPSS estimates a 0.42% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | < 9.2.0276 |
References
- https://github.com/vim/vim/releases/tag/v9.2.0276Release Notes
- https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9Patch, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/01/1Mailing List, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-34982?
How severe is CVE-2026-34982?
How do I fix CVE-2026-34982?
Are you affected by CVE-2026-34982?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
