Skip to main content

Vim CVE-2026-57453

| EUVDEUVD-2026-39446 HIGH
Command Injection (CWE-77)
2026-06-25 GitHub_M
7.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft zip with malicious entry name
  2. Delivery
    Deliver archive to victim
  3. Exploit
    Victim opens or views archive in Vim
  4. Execution
    Entry name breaks PowerShell string context
  5. Persist
    PowerShell executes injected commands
  6. Impact
    Code runs with victim's privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that Vim's bundled zip plugin (autoload/zip.vim) use its PowerShell fallback path - i.e. a host (effectively Windows) where archive browse/read/extract/update/delete is handled via pwsh/.NET System.IO.Compression rather than native GNU unzip/zip - and that the victim open, view or extract an attacker-supplied zip archive containing a maliciously crafted entry name. Limiting factors: it is not remote-network exploitable (AV:L) and demands user interaction (UI:R) to open the archive; it requires no privileges or authentication (PR:N) and runs only with the opening user's privileges; and Linux/macOS deployments using the standard unzip/zip tools do not reach the vulnerable PowerShell branch, narrowing exposure primarily to Windows users who open untrusted archives in vulnerable Vim builds (9.1.1784 to <9.2.0678).

Impact

The CVSS 3.1 base score is 7.3 (High) with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L: local attack vector because the malicious archive must reach the victim and be opened, low complexity, no privileges, but required user interaction. No EPSS score was provided, the CVE is not in CISA KEV, and no POC or active-exploitation signal is present, so this should be treated as a latent code-execution risk rather than an under-active-attack emergency. An important conditional limiter not reflected in the raw score is that the injectable PowerShell path only executes on deployments that fall back to PowerShell (effectively Windows hosts using the .NET/pwsh branch instead of native unzip/zip); on Linux/macOS systems using the GNU tools this specific branch is not reached. The C:H/I:H/A:L impact is conservative for what is effectively arbitrary command execution as the user - integrity and confidentiality of anything the user can access are fully at stake. Net: a real priority to patch on Windows developer/analyst workstations that open untrusted archives in Vim, but lower urgency where the PowerShell fallback is never used.

Exploit ScenarioDerived

An attacker emails or hosts a booby-trapped .zip whose internal entry name contains PowerShell breakout syntax, then lures a Windows-based developer or analyst into opening or previewing it in Vim. Because Vim's zip plugin auto-browses the archive and builds a PowerShell command from the entry name without PowerShell-safe escaping, the embedded commands run with the victim's privileges the moment the archive is viewed. No public exploit code has been identified at time of analysis, but the low-complexity, no-privilege nature means a working payload would be straightforward for a capable attacker to craft.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jun 26, 2026

Arbitrary command execution in Vim's bundled zip plugin (autoload/zip.vim) affects builds from 9.1.1784 up to the 9.2.0678 fix on systems where the plugin falls back to PowerShell for archive operations. When browsing, reading, extracting, updating or deleting zip entries, the plugin quotes archive entry names for the shell but not for PowerShell, so a crafted entry name escapes the string context and runs attacker-supplied commands with the privileges of the user who merely opened or viewed the archive. There is no public exploit identified at time of analysis and the issue is not listed in CISA KEV; risk is bounded to Windows/PowerShell-fallback deployments and requires user interaction.

Earlier versions of this analysis (2)
v2 Jun 26, 2026 - 04:28 cvss changed CVSS 7.3

Command injection in Vim's bundled zip plugin (autoload/zip.vim) from 9.1.1784 through versions before 9.2.0678 allows attackers to run arbitrary PowerShell commands when a victim opens, views, or extracts a crafted zip archive. The plugin's PowerShell fallback path quotes archive entry names only for the shell, not for PowerShell, so a malicious entry name breaks out of its string context and executes commands with the privileges of the user running Vim. No public exploit identified at time of analysis; the issue affects Windows-style deployments where Vim falls back to PowerShell (pwsh) for zip handling.

v1 Jun 25, 2026 - 16:25 CVSS 6.5

Command injection in Vim's bundled zip plugin (autoload/zip.vim) allows arbitrary command execution on Windows systems when a user opens, views, or extracts a crafted zip archive containing a maliciously named entry. Affected versions 9.1.1784 through 9.2.0677 pass archive entry names through shell-only escaping (s:Escape) when building PowerShell commands, failing to account for PowerShell's distinct string metacharacter rules - a crafted entry name can terminate the intended PowerShell string literal and inject arbitrary commands that execute with the privileges of the Vim user. No public exploit code and no CISA KEV listing have been identified at time of analysis; the vendor has released a confirmed fix in v9.2.0678.

RemediationAI

Upgrade Vim to 9.2.0678 or later, the vendor-released patch (https://github.com/vim/vim/releases/tag/v9.2.0678), which applies the new s:PSEscape() PowerShell-aware quoting across all zip operations (commit b2cc9be119d51212bf0d3f2a99; advisory GHSA-x5fg-h5w9-9frf). If you cannot immediately upgrade on Windows hosts, a practical compensating control is to avoid opening, viewing or extracting untrusted .zip archives in Vim, since simply opening the archive is the trigger; another is to disable the bundled zip plugin (for example by preventing autoload/zip.vim from loading) so archives are no longer auto-browsed, with the trade-off of losing in-editor zip browsing. Where feasible, ensuring the GNU unzip/zip binaries are present and used keeps the PowerShell fallback branch from being exercised, though this is a configuration-dependent mitigation rather than a guaranteed fix. Patching to 9.2.0678 remains the only complete remediation.

Affected VersionsENISA

vim 9.1.1784, < 9.2.0678

Affected Packages

euvd vim_9_1_1784 fix: 9.2.0678

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-77 command injection inside Vim's runtime/autoload/zip.vim, which transparently lets users open and edit .zip files as if they were directories. On platforms where the GNU unzip/zip binaries are unavailable, the plugin builds PowerShell command strings (pwsh -NoProfile -Command ...) that embed .NET System.IO.Compression.ZipFile calls and the names of entries inside the archive. The vulnerable code used s:Escape(..., 1), applying shell-style quoting, to interpolate the attacker-controlled FullName/Name of zip entries directly into PowerShell command text. PowerShell parses quoting and subexpressions differently from POSIX shells, so shell escaping does not neutralize PowerShell metacharacters. The fix introduces a dedicated s:PSEscape() helper applied to every entry name, zip path and temp path, and reworks command dispatch (using string() and call system()) so entry names can no longer break out of their intended string context. CPE coverage is cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*, i.e. the upstream Vim distribution itself rather than a third-party add-on.

Know when Vim gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY MEDIUM
NVD 7.3 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
vuln.today AI 7.8 HIGH

Local delivery of a file the user must open gives AV:L/UI:R; no auth needed (PR:N); arbitrary command execution as the user justifies C:H/I:H/A:H with scope unchanged.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.0 HIGH
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 5.8 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

5
Analysis Updated
Jun 26, 2026 - 04:29 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 26, 2026 - 04:28 vuln.today
v2 - CVSS changed
Severity Changed
Jun 26, 2026 - 04:22 NVD
MEDIUM HIGH
CVSS changed
Jun 26, 2026 - 04:22 NVD
6.5 (MEDIUM) 7.3 (HIGH)
Patch available
Jun 25, 2026 - 17:02 EUVD

DescriptionNVD

Vim is an open source, command line text editor. From 9.1.1784 until 9.2.0678, when the bundled zip plugin autoload/zip.vim falls back to PowerShell to browse, read, extract, update or delete entries in a zip archive, it builds the PowerShell command by inserting archive entry names that are quoted only for the shell, not for PowerShell. A crafted entry name can break out of the intended string context and cause PowerShell to execute arbitrary commands with the privileges of the user running Vim, triggered by opening, viewing or extracting the archive. This vulnerability is fixed in 9.2.0678.

Executive ViewAI

Why It Matters

Vim, a widely-used text editor on Windows developer workstations, is vulnerable to command execution attacks through ZIP archive files; no public exploit has been identified at time of analysis. Employees who open crafted archives could unknowingly allow attackers to execute code on their systems, potentially compromising development environments and intellectual property. The organization should prioritize patching Vim to 9.2.0678 or later to eliminate code execution risk from this common file-sharing scenario.

Business Impact: High
Compensating Controls

Apply vendor patch: Vim 9.2.0678 or later.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
Vim ships widely across dev workstations; vulnerable path limited to Windows PowerShell fallback
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Vim

View all
CVE-2022-3520 CRITICAL POC
9.8 Dec 02

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0765. Rated critical severity (CVSS 9.8), this vuln

CVE-2022-0729 HIGH POC
8.8 Feb 23

Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4440. Rated high severity (CVSS 8.8), this

CVE-2026-34714 HIGH POC
8.6 Mar 30

Code execution vulnerability in Vim before 9.2.0272 allows attackers to gain immediate arbitrary command execution upon

CVE-2019-12735 HIGH POC
8.6 Jun 05

getchar.c in Vim before 8.1.1365 and Neovim before 0.3.6 allows remote attackers to execute arbitrary OS commands via th

CVE-2021-3968 HIGH POC
8.0 Nov 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 8.0), this vulnerability is remotely exploita

CVE-2022-1616 HIGH POC
7.8 May 07

Use after free in append_command in GitHub repository vim/vim prior to 8.2.4895. Rated high severity (CVSS 7.8), this vu

CVE-2022-1619 HIGH POC
7.8 May 08

Heap-based Buffer Overflow in function cmdline_erase_chars in GitHub repository vim/vim prior to 8.2.4899. Rated high se

CVE-2021-4136 HIGH POC
7.8 Dec 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2021-3973 HIGH POC
7.8 Nov 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2021-3927 HIGH POC
7.8 Nov 05

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2022-2125 HIGH POC
7.8 Jun 19

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2. Rated high severity (CVSS 7.8), this vulnerability

CVE-2022-2126 HIGH POC
7.8 Jun 19

Out-of-bounds Read in GitHub repository vim/vim prior to 8.2. Rated high severity (CVSS 7.8), this vulnerability is no a

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy