VDB

CVE-2026-34982

CVE-2026-34982 PUBLISHED CVSS 8.2 HIGH

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.

PackageEcosystemFixed in
vim-debuginfoerrata.rockylinux.org8.2.2637-26.el9, 8.2.2637-23.el9, 2:8.2.2637-23.el9_7.3.x86_64
vim-X11errata.rockylinux.org8.2.2637-26.el9, 8.2.2637-23.el9, 2:8.2.2637-23.el9_7.3.aarch64

Risk scores

CVSS 3.1
8.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Affected products

VendorProductVersions
vimvim< 9.2.0276
Red HatRed Hat Update Infrastructure 5
vimvim0
Red HatRed Hat Enterprise Linux AppStream (v. 10)
Red HatRed Hat OpenShift Container Platform 4.17417.94.202608250221-0
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4)
Red HatRed Hat AI Inference Server 3.2
amazon:2023vim-minimal0
Red HatRed Hat Enterprise Linux BaseOS EUS (v. 10.0)
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Update Infrastructure 51787135742
Red HatRed Hat Enterprise Linux AppStream E4S (v.8.8)
amazon:2023vim-filesystem0
Red HatRed Hat OpenShift Container Platform 4
amazon:2023vim-data0
Red HatRed Hat Enterprise Linux 102:9.1.083-9.el10_2.2, 2:9.1.083-6.el10_1.4
Red HatRed Hat Update Infrastructure 51787241260
Red HatRed Hat OpenShift Container Platform 4.13413.92.202609080414-0
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service2: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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›