Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | < 9.2.0276 |
Related Weaknesses (CWE)
References
- https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615Patch
- https://github.com/vim/vim/releases/tag/v9.2.0276Release Notes
- https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9PatchVendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/01/1Mailing ListPatchThird Party Advisory
FAQ
What is CVE-2026-34982?
CVE-2026-34982 is a vulnerability with a CVSS score of 8.2 (HIGH). 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`, `gu...
How severe is CVE-2026-34982?
CVE-2026-34982 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-34982?
Check the references section above for vendor advisories and patch information. Affected products include: Vim Vim.