8.2highHigh
CVE-2026-34982
Vim Vim
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.
Exploitation status
- A vendor advisory or patch reference has been published.
What the metrics mean
- It is requires local access to the machine.
- For an attacker who can reach it, no special conditions are needed to exploit it.
- To exploit it, no account is needed.
- Beyond that, someone has to be persuaded to take an action first.
Scoring
- CVSS
- 8.2 (v3.1)
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N- Weakness
- CWE-78
- Assigned by
- security-advisories@github.com
Dates
- Published
- 2026-04-06
- Last modified
- 2026-09-04
- Sources
- NVD
Affected products
- Vim Vim- 9.2.0276
As listed in the NVD configuration data. Not a statement about your estate.
References
- https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615
- https://github.com/vim/vim/releases/tag/v9.2.0276
- https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9
- http://www.openwall.com/lists/oss-security/2026/04/01/1
- https://access.redhat.com/errata/RHSA-2026:11389
- https://access.redhat.com/errata/RHSA-2026:11509
- https://access.redhat.com/errata/RHSA-2026:11510
- https://access.redhat.com/errata/RHSA-2026:19073
- https://access.redhat.com/errata/RHSA-2026:19224
- https://access.redhat.com/errata/RHSA-2026:21275
- https://access.redhat.com/errata/RHSA-2026:22634
- https://access.redhat.com/errata/RHSA-2026:28049
- https://access.redhat.com/errata/RHSA-2026:28050
- https://access.redhat.com/errata/RHSA-2026:28133
- https://access.redhat.com/errata/RHSA-2026:30078