cve.bz

CVE-2026-34982 vim vim: OS Command Injection

8.2 highEPSS 0.5%Fix available

High (8.2) in vim vim. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-34982 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-34982?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-34982?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-34982 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-34982

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-34982](https://cve.bz/cve/badge/CVE-2026-34982.svg)](https://cve.bz/cve/CVE-2026-34982)

HTML:

<a href="https://cve.bz/cve/CVE-2026-34982"><img src="https://cve.bz/cve/badge/CVE-2026-34982.svg" alt="CVE-2026-34982"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 9.2.0276

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-34982
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-34982
Debian14vim2:9.2.0315-1DEBIAN-CVE-2026-34982
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.27UBUNTU-CVE-2026-34982
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.11UBUNTU-CVE-2026-34982
Ubuntu25.10vim2:9.1.0967-1ubuntu6.2UBUNTU-CVE-2026-34982
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm3UBUNTU-CVE-2026-34982
Red Hatenterprise_linux:8::appstreamvim-X11, vim-common, vim-enhanced and 7 more2:8.0.1763-22.el8_10.3RHSA-2026:11509
Red Hatenterprise_linux:8::baseosvim, vim-minimal, vim-debuginfo and 5 more2:8.0.1763-22.el8_10.3RHSA-2026:11509
Red Hatenterprise_linux:9::appstreamvim-X11, vim-common, vim-enhanced and 6 more2:8.2.2637-23.el9_7.3RHSA-2026:11510
Red Hatenterprise_linux:9::appstreamvim-X11, vim-enhanced2:8.2.2637-26.el9_8.4RHSA-2026:19224
Red Hatenterprise_linux:9::baseosvim, vim-minimal2:8.2.2637-26.el9_8.4RHSA-2026:19224
Red Hatenterprise_linux:9::baseosvim, vim-minimal, vim-debuginfo and 6 more2:8.2.2637-23.el9_7.3RHSA-2026:11510
Red Hatenterprise_linux:10.1vim, xxd, vim-X11 and 11 more2:9.1.083-6.el10_1.4RHSA-2026:11389
Red Hatenterprise_linux:10.2vim, vim-X11, vim-minimal and 1 more2:9.1.083-9.el10_2.2RHSA-2026:19073
Red Hatenterprise_linux_eus:10.0vim, xxd, vim-X11 and 11 more2:9.1.083-5.el10_0.3RHSA-2026:30900
Red Hathummingbird:1vim, xxd, vim-X11 and 6 more2:9.2.967-1.1.hum1RHSA-2026:57614
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamvim-X11, vim-common, vim-enhanced and 7 more2:8.0.1763-15.el8_4.2RHSA-2026:33453
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseosvim, vim-minimal, vim-debuginfo and 5 more2:8.0.1763-15.el8_4.2RHSA-2026:33453
12 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.2 and 4 morevim9.2.0280-150000.5.89.1SUSE-SU-2026:1387-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 6 morevim9.2.0280-150500.20.46.1SUSE-SU-2026:1607-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5vim9.2.0280-17.62.1SUSE-SU-2026:1347-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0vim9.2.0280-160000.1.1SUSE-SU-2026:21197-1
SUSELinux Micro 6.0vim9.2.0280-1.1SUSE-SU-2026:21124-1
SUSELinux Micro 6.1vim9.2.0280-slfo.1.1_1.1SUSE-SU-2026:21118-1
SUSELinux Micro 6.2vim9.2.0280-160000.1.1SUSE-SU-2026:21134-1
SUSELinux Micro Extras 6.2vim9.2.0280-160000.1.1SUSE-SU-2026:21136-1
openSUSELeap 15.6vim9.2.0280-150500.20.46.1SUSE-SU-2026:1607-1
openSUSELeap 16.0vim9.2.0280-160000.1.1openSUSE-SU-2026:20540-1
openSUSETumbleweedvim9.2.0398-1.1openSUSE-SU-2026:10652-1
AlmaLinux8vim-X11, vim-common, vim-minimal and 2 more2:8.0.1763-22.el8_10.3ALSA-2026:11509
AlmaLinux9vim-X11, vim-common, vim-minimal and 2 more2:8.2.2637-23.el9_7.3ALSA-2026:11510
AlmaLinux9vim-X11, vim-common, vim-minimal and 2 more2:8.2.2637-26.el9_8.4ALSA-2026:19224
AlmaLinux10vim-data, vim-filesystem2:9.1.083-6.el10_1.4ALSA-2026:11389
AlmaLinux10xxd, vim-X11, vim-data and 4 more2:9.1.083-9.el10_2.2ALSA-2026:19073
Rocky Linux8vim2:8.0.1763-22.el8_10.3RLSA-2026:11509
Rocky Linux9vim2:8.2.2637-23.el9_7.3RLSA-2026:11510
Rocky Linux9vim2:8.2.2637-26.el9_8.4RLSA-2026:19224
Rocky Linux10vim2:9.1.083-6.el10_1.4RLSA-2026:11389
Rocky Linux10vim2:9.1.083-9.el10_2.2RLSA-2026:19073
Alpinev3.23, v3.24vim9.2.0280-r0ALPINE-CVE-2026-34982
Azure Linux3vim9.2.0315-1AZL-81914
Alpaquita23, 25vim9.2.0280-r0BELL-CVE-2026-34982
Alpaquitastreamvim9.2.0291-r0BELL-CVE-2026-34982

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

To exploit this vulnerability, an attacker needs to convince a user to open a specially crafted file. The arbitrary OS command execution is restricted to the privileges of the user running Vim, limiting the potential of a full system compromise.

Red Hat's mitigation

To mitigate this issue, disable the modeline support by adding the following command to the Vim configuration file:

~~~

set nomodeline

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vim-2:9.1.083-6.el10_1.4Fixed 2026-04-28RHSA-2026:11389
Red Hat Enterprise Linux 10vim-2:9.1.083-9.el10_2.2Fixed 2026-05-19RHSA-2026:19073
Red Hat Enterprise Linux 10.0 Extended Update Supportvim-2:9.1.083-5.el10_0.3Fixed 2026-06-29RHSA-2026:30900
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONvim-2:7.4.629-5.el6_10.4Fixed 2026-09-21RHSA-2026:69128
Red Hat Enterprise Linux 7 Extended Lifecycle Supportvim-2:7.4.629-8.el7_9.2Fixed 2026-09-17RHSA-2026:68711
Red Hat Enterprise Linux 8vim-2:8.0.1763-22.el8_10.3Fixed 2026-04-29RHSA-2026:11509
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportvim-2:8.0.1763-15.el8_4.2Fixed 2026-06-30RHSA-2026:33453
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onvim-2:8.0.1763-15.el8_4.2Fixed 2026-06-30RHSA-2026:33453
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportvim-2:8.0.1763-19.el8_6.6Fixed 2026-07-01RHSA-2026:34477
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onvim-2:8.0.1763-19.el8_6.6Fixed 2026-07-01RHSA-2026:34477
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicevim-2:8.0.1763-20.el8_8.2Fixed 2026-07-01RHSA-2026:34476
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsvim-2:8.0.1763-20.el8_8.2Fixed 2026-07-01RHSA-2026:34476
Red Hat Enterprise Linux 9vim-2:8.2.2637-23.el9_7.3Fixed 2026-04-29RHSA-2026:11510
Red Hat Enterprise Linux 9vim-2:8.2.2637-26.el9_8.4Fixed 2026-05-19RHSA-2026:19224
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_2.2Fixed 2026-06-23RHSA-2026:28133
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_4.3Fixed 2026-06-22RHSA-2026:28049
Red Hat Enterprise Linux 9.6 Extended Update Supportvim-2:8.2.2637-22.el9_6.3Fixed 2026-06-22RHSA-2026:28050
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202608241157-0Fixed 2026-09-03RHSA-2026:59831
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202609080414-0Fixed 2026-09-17RHSA-2026:65839
Red Hat OpenShift Container Platform 4rhcosAffected
23 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-34982.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON