CVE-2025-29768
Vim vulnerability analysis and mitigation

Overview

Vim, a text editor, was found to be vulnerable to potential data loss through its zip.vim plugin in versions prior to 9.1.1198. The vulnerability was discovered on March 12, 2025, and involves specially crafted zip files that could lead to unintended data extraction (GitHub Advisory, NVD).

Technical details

The vulnerability exists in the zip.vim plugin's handling of zip archives containing files with names starting with '-'. When extracting such files, Vim uses the unzip command without properly sanitizing filenames, which could lead to argument injection. The issue received a CVSS v3.1 base score of 4.4 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N, indicating local attack vector, low attack complexity, no privileges required, and required user interaction (GitHub Advisory, Snyk).

Impact

The vulnerability could result in potential data loss when a user views a maliciously crafted zip archive and attempts to extract files. If an attacker creates an archive containing a file named '-d/tmp' and a user tries to extract it, the unzip command could interpret the filename as an argument, potentially leading to unintended file extraction and overwriting of existing files (GitHub Advisory).

Exploitability

Exploitation requires user interaction, specifically viewing a maliciously crafted archive with Vim and pressing 'x' to extract a file with a specially crafted filename. The attack vector is local, meaning the attacker needs to have the malicious zip file placed on the target system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Vim patch v9.1.1198. The fix implements a workaround using the '[-]' glob pattern to protect filenames starting with '-' from being interpreted as command arguments. Users are advised to upgrade to version 9.1.1198 or later (GitHub Commit).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

vim

Affected

sid

vim: 2:9.1.1230-1

Fixed

trixie

vim: 2:9.1.1230-1

Fixed

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

vim.src

Affected

RHEL 9

vim.src

Affected

RHEL 10

vim.src

Affected

Alpine

Fixed

edge

vim: 9.1.1202-r0

Fixed

v3.22

vim: 9.1.1202-r0

Fixed

v3.23

vim: 9.1.1202-r0

Fixed

SourceThis report was generated using AI

Related Vim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73078HIGH8.6
  • Vim logoVim
  • xxd
NoYesAug 11, 2026
CVE-2026-73077HIGH8.4
  • Vim logoVim
  • vim-X11
NoYesAug 11, 2026
CVE-2026-43961HIGH7.8
  • Vim logoVim
  • vim
NoYesAug 19, 2026
CVE-2026-73073HIGH7.1
  • Vim logoVim
  • vim-data
NoYesAug 18, 2026
CVE-2026-19617MEDIUM5.5
  • Vim logoVim
  • xxd
NoYesAug 14, 2026

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