CVE-2025-29768
NoneCVSS
—
EPSS
0.4%
Published
Mar 13, 2025
CISA due date
—
Cloudanix analysis
Opening a specially made zip file in the Vim editor and pressing a key on a weird filename could accidentally delete or damage your other files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- High
- Impact
- Data Tampering
- Component
- Application
- Class
- Path Traversal
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Path traversal in zip.vim allows a specially crafted zip archive to cause data loss when a user views the archive and presses 'x' on a malicious filename, enabling unintended file deletion or overwrite outside the extraction directory.
Why it matters to the business
Users risk losing important files if they open a malicious zip archive in Vim and interact with unusual filenames, potentially disrupting work and requiring data recovery efforts; low urgency given stable low exploit likelihood and no known campaigns.
How an attack unfolds
An attacker creates a zip file embedding path traversal sequences in a filename. The victim is tricked into opening the archive with Vim, then presses 'x' on the crafted entry, triggering the vulnerability to delete or corrupt files on the system.
How to fix it
Update Vim to a version containing commit f209dcd3defb95bae21b2740910e6aa7bb940531 (corresponding to patch v9.1.1198 or later) to resolve the path traversal issue in zip.vim.
How to confirm the fix worked
Verify the installed Vim version includes commit f209dcd3defb95bae21b2740910e6aa7bb940531 or is at least 9.1.1198; test by attempting to open a crafted zip and confirming no traversal occurs on 'x' press.
Typical attack path
- Craft a zip archive containing a filename with path traversal sequences
- Distribute the archive to the target user
- Victim opens the archive using Vim
- Victim navigates to and presses 'x' on the malicious filename entry
- Arbitrary file deletion or overwrite occurs outside the intended scope
How to detect it
Review Vim process logs and file system audit trails for unexpected deletions or writes triggered after zip archive access; check for any unusual filename patterns in zip handling events.
What your security team should do
- Prioritize patching Vim installations to the fixed commit across all environments
- Educate users on avoiding interaction with untrusted zip files in Vim
- Monitor for any new exploit activity given the path traversal family classification
The record
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. The impact is medium because a user must be made to view such an archive with Vim and then press 'x' on such a strange filename. The issue has been fixed as of Vim patch v9.1.1198.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.22 | vim | 0 | 9.1.1202-r0 |
| Debian:11 | vim | 0 | No fix |
| Debian:12 | vim | 0 | No fix |
| Debian:13 | vim | 0 | No fix |
| Debian:14 | vim | 0 | 2:9.1.1230-1 |
| Mageia:9 | vim | 0 | 9.1.1202-1.mga9 |
| SUSE:Enterprise Storage 7.1 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Micro 5.1 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Micro 5.2 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Micro 5.3 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Micro 5.4 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Micro 5.5 | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Server 12 SP5-LTSS | vim | 0 | 9.1.1406-17.48.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | vim | 0 | 9.1.1406-17.48.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | vim | 0 | 9.1.1406-150500.20.27.1 |
| SUSE:Manager Proxy 4.3 | vim | 0 | 9.1.1406-150000.5.75.1 |
| SUSE:Manager Server 4.3 | vim | 0 | 9.1.1406-150000.5.75.1 |
| Ubuntu:20.04:LTS | vim | 0 | No fix |
| Ubuntu:22.04:LTS | vim | 0 | No fix |
| Ubuntu:24.04:LTS | vim | 0 | No fix |
| Ubuntu:24.10 | vim | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | vim | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | vim | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | vim | 0 | No fix |
| openSUSE:Leap 15.6 | vim | 0 | 9.1.1406-150500.20.27.1 |
Related vulnerabilities
- CVE-2025-27423 Vim is an open source, command line text editor. Also affects vim
- CVE-2025-24014 Vim is an open source, command line text editor. Also affects vim
- CVE-2025-22134 When switching to other buffers using the :all command and visual mode still being… Also affects vim
- CVE-2024-47814 Vim is an open source, command line text editor. Also affects vim
- CVE-2024-43802 Vim is an improved version of the unix vi text editor. Also affects vim
- CVE-2024-43374 The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list… Also affects vim
- CVE-2023-48706 Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free… Also affects vim
- CVE-2023-48231 Vim is an open source command line text editor. Also affects vim