JLSEC-2026-1845: Path Traversal
Vim is an open source, command line text editor. Prior to version 9.1.1551, a path traversal issue in Vim’s zip.vim plugin can allow overwriting of arbitrary files when opening specially crafted zip archives. Impact is low because this exploit requires direct user interaction. However, successfully exploitation can lead to overwriting sensitive files or placing executable code in privileged locations, depending on the permissions of the process editing the archive. The victim must edit such a file using Vim which will reveal the filename and the file content, a careful user may suspect some strange things going on. Successful exploitation could results in the ability to execute arbitrary commands on the underlying operating system. Version 9.1.1551 contains a patch for the vulnerability.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Vimto a version that resolves this vulnerability.Fixed in 9.1.1551
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of Vim versions before 9.1.1551 are exposed when they open and edit a specially crafted ZIP archive with Vim. The potential impact depends on the permissions of the process running Vim, including whether it can write to sensitive or privileged locations.
What does an attacker need to exploit this vulnerability?
An attacker must convince a user to directly interact with a malicious ZIP archive by editing it in Vim. During this interaction, Vim reveals the filenames and archive contents, which may give a careful user an opportunity to notice suspicious behavior.
What should be done to remediate the issue?
Update to Vim version 9.1.1551 or later, which contains the patch. Until updating is possible, do not open or edit untrusted ZIP archives with Vim, particularly when Vim is running with permissions that can modify sensitive files.
What could successful exploitation allow?
The crafted archive can cause arbitrary files to be overwritten through path traversal in the zip.vim plugin. Depending on the affected process permissions and overwritten location, this can enable placement of executable code in privileged locations and arbitrary operating-system command execution.