Data Loss Risk in Vim Due to Vulnerability in Zip Handling

vim Updated 02 Oct 2025

Summary

13/03/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-29768: Vim, a text editor, is vulnerable to potential data loss with zip.vim and special crafted zip files in versions prior to 9.1.1198. Affects vim versions < 2:9.1.1230-1. Fixed in 2:9.1.1230-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Vim is a highly configurable text editor used for efficiently creating and editing any kind of text. It is known for its powerful features, including syntax highlighting, multi-level undo, and extensive plugin support. However, certain versions of Vim are vulnerable to potential data loss when handling specially crafted zip files, particularly when using the zip.vim plugin.

Vulnerability Detail

The vulnerability arises from the way Vim processes zip files, specifically in versions prior to 9.1.1198. If a user opens a specially crafted zip file and interacts with it by pressing 'x', there is a risk of data loss. This issue is classified as medium severity since it requires user interaction to exploit. The vulnerability has been addressed in Vim patch v9.1.1198, which mitigates the risk associated with this flaw.

How To Fix

Minimum fixed version

2:9.1.1230-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid opening zip files with Vim until they have updated to the patched version. Additionally, users can use alternative text editors that do not exhibit this vulnerability for handling zip files.

Conclusion

In summary, Vim has a vulnerability that can lead to potential data loss when handling specially crafted zip files in versions prior to 9.1.1198. Users are advised to update to the latest patched version to mitigate this risk. Additionally, monitoring tools like Vulert can help keep track of vulnerabilities in your software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

Versions of Vim prior to 9.1.1198 are affected by this vulnerability.

The impact is medium, as it requires user interaction to exploit, specifically by opening a crafted zip file and pressing 'x'.

You can check your version of Vim by running the command 'vim --version' in your terminal.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json.

More information can be found in the official Debian CVE database or by visiting the Vulert playground at Vulert Scanner.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:9.1.1230-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback