CVE-2026-34982
Vim modeline bypass via various options affects Vim < 9.2.0276
Reported by github_m · Published April 6, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-debuginfo | errata.rockylinux.org | 8.2.2637-26.el9, 8.2.2637-23.el9, 2:8.2.2637-23.el9_7.3.x86_64 |
| vim-X11 | errata.rockylinux.org | 8.2.2637-26.el9, 8.2.2637-23.el9, 2:8.2.2637-23.el9_7.3.aarch64 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0276 |
| Red Hat | Red Hat Update Infrastructure 5 | |
| vim | vim | 0 |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 10) | |
| Red Hat | Red Hat OpenShift Container Platform 4.17 | 417.94.202608250221-0 |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) | |
| Red Hat | Red Hat AI Inference Server 3.2 | |
| amazon:2023 | vim-minimal | 0 |
| Red Hat | Red Hat Enterprise Linux BaseOS EUS (v. 10.0) | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Update Infrastructure 5 | 1787135742 |
| Red Hat | Red Hat Enterprise Linux AppStream E4S (v.8.8) | |
| amazon:2023 | vim-filesystem | 0 |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| amazon:2023 | vim-data | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | 2:9.1.083-9.el10_2.2, 2:9.1.083-6.el10_1.4 |
| Red Hat | Red Hat Update Infrastructure 5 | 1787241260 |
| Red Hat | Red Hat OpenShift Container Platform 4.13 | 413.92.202609080414-0 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 2:8.0.1763-20.el8_8.2 |
…and 71 more
Timeline
- Mar 31, 2026 CVE Published
- Apr 2, 2026 PoC Published (2 in total, the first dated here)
- Apr 14, 2026 Security Advisory (53 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (40 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jun 19, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-34982
vulnetix vdb fixes CVE-2026-34982
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-34982/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9 x_refsource_CONFIRM
- https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615 x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0276 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2026/04/01/1 url
- https://access.redhat.com/security/cve/CVE-2026-34982 vdb
- RHBZ#2455400 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34982.json url
- https://access.redhat.com/errata/RHSA-2026:68711 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:59831 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:65839 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:56786 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:56911 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:56853 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:60019 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:57483 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:57402 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30900 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11389 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19073 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11509 vendor-advisory
…and 18 more