CVE-2026-34982
JSON

8.2high

Vim modeline bypass via various options affects Vim < 9.2.0276

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.29% (higher than 14% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
vim vim< 9.2.0276, before 9.2.0276CVE List, NVD
vimNot specified
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 *
CVE List
rhcosNot specified
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 *
CVE List
rhaiis/model-opt-cuda-rhel9Not specified
Not affected: from 1782951051 before *, from 1782352950 before *
CVE List
rhaiis/vllm-cuda-rhel9Not specified
Not affected: from 1782951012 before *, from 1782352847 before *
CVE List
rhaiis/vllm-rocm-rhel9Not specified
Not affected: from 1782951244 before *, from 1782353093 before *
CVE List
rhaiis/vllm-spyre-rhel9Not specified
Not affected: from 1782352919 before *
CVE List
insights-proxy/insights-proxy-container-rhel9Not specified
Not affected: from 1780420428 before *
CVE List
rhui5/cds-rhel9Not specified
Not affected: from 1779798159 before *
CVE List
rhui5/haproxy-rhel9Not specified
Not affected: from 1779798164 before *
CVE List
rhui5/installer-rhel9Not specified
Not affected: from 1779798165 before *
CVE List
rhui5/rhua-rhel9Not specified
Not affected: from 1779798222 before *
CVE List

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
redhat-SADP8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

pendiente...

References

https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9patch, vendor-advisory
https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615patch
https://github.com/vim/vim/releases/tag/v9.2.0276release-notes
http://www.openwall.com/lists/oss-security/2026/04/01/1mailing-list, patch, third-party-advisory
https://access.redhat.com/security/cve/CVE-2026-34982vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2455400issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34982.json
https://access.redhat.com/errata/RHSA-2026:68711vendor-advisory
https://access.redhat.com/errata/RHSA-2026:59831vendor-advisory
https://access.redhat.com/errata/RHSA-2026:65839vendor-advisory
https://access.redhat.com/errata/RHSA-2026:56786vendor-advisory
https://access.redhat.com/errata/RHSA-2026:56911vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-34982 changed 2026-09-18CVE Terms of Use
NVDCVE-2026-34982 changed 2026-10-24Public domain