# CVE-2026-34982: Vim modeline bypass via various options affects Vim \< 9.2.0276

- Priority: **Routine**
- Reason: Not severe (CVSS 8.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-06 · Modified: 2026-09-18
- Aliases: ALPINE-CVE-2026-34982, RHSA-2026:11389, RHSA-2026:11509, RHSA-2026:11510, RHSA-2026:19073, RHSA-2026:19224, UBUNTU-CVE-2026-34982, DEBIAN-CVE-2026-34982
- Record: https://cvemate.com/vulnerability/CVE-2026-34982 · JSON: https://cvemate.com/vulnerability/CVE-2026-34982/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- EPSS: 0.487%, percentile 43.568%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.2.0280-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.1230-2+deb13u1 \| \< 2:9.2.0315-1
- ubuntu vim (Ubuntu): \< 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
- redhat vim (Red Hat): \< 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
- redhat vim-common (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-common-debuginfo (Red Hat): \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-data (Red Hat): \< 2:9.1.083-6.el10\_1.4
- redhat vim-debuginfo (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-debugsource (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-enhanced (Red Hat): \< 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
- redhat vim-enhanced-debuginfo (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-filesystem (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-minimal (Red Hat): \< 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
- redhat vim-minimal-debuginfo (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat vim-X11 (Red Hat): \< 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
- redhat vim-X11-debuginfo (Red Hat): \< 2:9.1.083-6.el10\_1.4 \| \< 2:8.0.1763-22.el8\_10.3 \| \< 2:8.2.2637-23.el9\_7.3
- redhat xxd (Red Hat): \< 2:9.1.083-6.el10\_1.4
- redhat xxd-debuginfo (Red Hat): \< 2:9.1.083-6.el10\_1.4
- vim vim: \< 9.2.0276

## References (first 20 of 50)

- <https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9>
- <https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615>
- <https://github.com/vim/vim/releases/tag/v9.2.0276>
- <http://www.openwall.com/lists/oss-security/2026/04/01/1>
- <https://access.redhat.com/security/cve/CVE-2026-34982>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2455400>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34982.json>
- <https://access.redhat.com/errata/RHSA-2026:68711>
- <https://access.redhat.com/errata/RHSA-2026:59831>
- <https://access.redhat.com/errata/RHSA-2026:65839>
- <https://access.redhat.com/errata/RHSA-2026:56786>
- <https://access.redhat.com/errata/RHSA-2026:56911>
- <https://access.redhat.com/errata/RHSA-2026:56853>
- <https://access.redhat.com/errata/RHSA-2026:60019>
- <https://access.redhat.com/errata/RHSA-2026:57483>
- <https://access.redhat.com/errata/RHSA-2026:57402>
- <https://access.redhat.com/errata/RHSA-2026:30900>
- <https://access.redhat.com/errata/RHSA-2026:11389>
- <https://access.redhat.com/errata/RHSA-2026:19073>
- <https://access.redhat.com/errata/RHSA-2026:11509>

---

Data as of 2026-12-05T04:11:25.580Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
