CVE-2026-34982
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.
How to fix
- vim vim9.2.0276 or later
- access.redhat.com/errata/RHSA-2026:68711
- access.redhat.com/errata/RHSA-2026:59831
- access.redhat.com/errata/RHSA-2026:65839
- access.redhat.com/errata/RHSA-2026:56786
- access.redhat.com/errata/RHSA-2026:56911
- access.redhat.com/errata/RHSA-2026:56853
- access.redhat.com/errata/RHSA-2026:60019
- access.redhat.com/errata/RHSA-2026:57483
- access.redhat.com/errata/RHSA-2026:57402
- access.redhat.com/errata/RHSA-2026:30900
- access.redhat.com/errata/RHSA-2026:11389
- access.redhat.com/errata/RHSA-2026:19073
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vim vim | v < 9.2.0276 | 9.2.0276 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.