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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2026-04-06T15:16:48.809Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0276; before 9.2.0276
- vim: no versions given (not affected: from 2:9.1.083-6.el10_1.4 before *; from 2:9.1.083-9.el10_2.2 before *; from 2:9.1.083-5.el10_0.3 before *; from 2:7.4.629-8.el7_9.2 before *; from 2:8.0.1763-22.el8_10.3 before *; from 2:8.0.1763-15.el8_4.2 before *; from 2:8.0.1763-19.el8_6.6 before *; from 2:8.0.1763-20.el8_8.2 before *; from 2:8.2.2637-23.el9_7.3 before *; from 2:8.2.2637-26.el9_8.4 before *; from 2:8.2.2637-20.el9_2.2 before *; from 2:8.2.2637-20.el9_4.3 before *)
- rhcos: no versions given (not affected: from 412.86.202608241157-0 before *; from 413.92.202609080414-0 before *; from 414.92.202608172040-0 before *; from 415.92.202608180329-0 before *; from 416.94.202608150307-0 before *; from 417.94.202608250221-0 before *; from 418.94.202608142238-0 before *; from 4.19.9.6.202608182320-0 before *)
- rhaiis/model-opt-cuda-rhel9: no versions given (not affected: from 1782951051 before *; from 1782352950 before *)
- rhaiis/vllm-cuda-rhel9: no versions given (not affected: from 1782951012 before *; from 1782352847 before *)
- rhaiis/vllm-rocm-rhel9: no versions given (not affected: from 1782951244 before *; from 1782353093 before *)
- rhaiis/vllm-spyre-rhel9: no versions given (not affected: from 1782352919 before *)
- insights-proxy/insights-proxy-container-rhel9: no versions given (not affected: from 1780420428 before *)
- rhui5/cds-rhel9: no versions given (not affected: from 1779798159 before *)
- rhui5/haproxy-rhel9: no versions given (not affected: from 1779798164 before *)
- rhui5/installer-rhel9: no versions given (not affected: from 1779798165 before *)
- rhui5/rhua-rhel9: no versions given (not affected: from 1779798222 before *)
- rhui5/cds-kubernetes-tp-rhel9: no versions given (not affected: from 1787241211 before *)
- rhui5/installer-tp-rhel9: no versions given (not affected: from 1787135742 before *)
- rhui5/rhua-tp-rhel9: no versions given (not affected: from 1787241260 before *)
- openshift/ose-rhel-coreos-9: no versions given

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9> (patch, vendor-advisory)
- <https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0276> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/04/01/1> (mailing-list, patch, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-34982> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2455400> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34982.json>
- <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)
- <https://access.redhat.com/errata/RHSA-2026:33453> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34477> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34476> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28133> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28049> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28050> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:11510> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:19224> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36004> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36005> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36006> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30078> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30089> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30088> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30087> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:22634> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:58981> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:21275> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-34982](https://www.cve.org/CVERecord?id=CVE-2026-34982), CVE Terms of Use, modified 2026-09-18
- NVD: [CVE-2026-34982](https://nvd.nist.gov/vuln/detail/CVE-2026-34982), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-34982 · Whole record: https://cve.day/CVE-2026-34982.json · Rebuilt by cve.day 2026-11-25T22:59:18.027Z
