CVE-2025-53906
Vim vulnerability analysis and mitigation

Overview

A path traversal vulnerability (CVE-2025-53906) was discovered in Vim's zip.vim plugin affecting versions prior to 9.1.1551. The vulnerability allows attackers to potentially overwrite arbitrary files when opening specially crafted zip archives. The issue was disclosed on July 15, 2025, and affects the Vim text editor's zip archive handling functionality (NVD, Github Advisory).

Technical details

The vulnerability stems from improper handling of relative paths in zip archives by Vim's zip.vim plugin. When a zip archive contains member files with relative paths (e.g., ../../somefile), the plugin fails to properly neutralize these path elements, potentially allowing files to be written outside the intended working directory. The vulnerability has been assigned a CVSS v3.1 base score of 4.1 (Medium) with the vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L, indicating local attack vector, high complexity, and required user interaction (Snyk).

Impact

While the impact is considered low due to required user interaction, successful exploitation could lead to overwriting sensitive files or placing executable code in privileged locations, depending on the permissions of the process editing the archive. The vulnerability could potentially result in the ability to execute arbitrary commands on the underlying operating system if an attacker can manipulate a user into editing a malicious zip archive (Github Advisory).

Mitigation and workarounds

The vulnerability has been patched in Vim version 9.1.1551. The fix includes dropping leading '../' on write of zipfiles and preventing forceful overwriting of existing files. Users are advised to upgrade to this version or later to protect against this vulnerability (Github Commit).

Additional resources


SourceThis report was generated using AI

Related Vim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66476HIGH7.8
  • VimVim
  • cpe:2.3:a:vim:vim
NoYesDec 02, 2025
CVE-2025-55158MEDIUM6.9
  • VimVim
  • cpe:2.3:a:vim:vim
NoYesAug 11, 2025
CVE-2025-55157MEDIUM6.9
  • VimVim
  • vim-data-common
NoYesAug 11, 2025
CVE-2025-9390MEDIUM4.8
  • VimVim
  • vim
NoYesAug 24, 2025
CVE-2025-9389MEDIUM4.8
  • VimVim
  • cpe:2.3:a:vim:vim
NoYesAug 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management