CVE-2026-34714

vim: Vim: Arbitrary code execution via crafted file

Published Mar 30, 2026 CVSS 3.1 · 9.2 Critical EPSS < 1% KEV · Not listed
Description
Vim before 9.2.0272 allows code execution that happens immediately upon opening a crafted file in the default configuration, because %{expr} injection occurs with tabpanel lacking P_MLE.

Analysis

AI-generated

Technical impact

Vim versions older than 9.2.0272 can execute arbitrary code as soon as an attacker opens a specially crafted file. The flaw arises from an unescaped %{expr} injection in the tabpanel configuration when the P_MLE flag is absent, allowing shell commands to be evaluated in the user’s environment. If exploited, the attacker achieves full code execution under the current user’s privileges, compromising the session and potentially the underlying system.

Affected Systems

Affected systems include all installations of the Vim editor built for Linux, macOS, and Windows prior to version 9.2.0272. The vulnerability applies to the default configuration; no special build flags are required. Users running any of these versions and opening files from untrusted sources are at risk.

Risk and Exploitability

The CVSS score of 9.2 categorizes this vulnerability as critical. An EPSS score is not available, and the issue is not listed in the CISA KEV catalog. Exploitation is local: the victim must open the crafted file; no network or privilege escalation mechanism is required beyond that. Because the injected command runs with the current process’s privileges, a local attacker can gain full control of the system once the file is opened, making it a high‑risk threat for unpatched users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Vim to version 9.2.0272 or later.

Generated by OpenCVE AI on March 31, 2026 at 06:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title vim: Vim: Arbitrary code execution via crafted file
Weaknesses CWE-917
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Vim
Vim vim
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Vendors & Products Vim
Vim vim
Type Values Removed Values Added
Description Vim before 9.2.0272 allows code execution that happens immediately upon opening a crafted file in the default configuration, because %{expr} injection occurs with tabpanel lacking P_MLE.
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-917

    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 1, 2026, 12:04 PM
Reserved
Mar 30, 2026, 6:27 PM
Status
Modified
Published
Mar 30, 2026, 7:16 PM
Modified
Sep 1, 2026, 1:18 PM
Severity
Important
Public date
Mar 30, 2026, 6:27 PM