CVE-2025-53905

Vim has path traversial issue with tar.vim and special crafted tar files

State
Published
Severity
4.1 Medium
Published
Jul 15, 2025
Updated
Nov 4, 2025
Reserved
Jul 11, 2025

Read the record on cve.org

Description

Vim is an open source, command line text editor. Prior to version 9.1.1552, a path traversal issue in Vim’s tar.vim plugin can allow overwriting of arbitrary files when opening specially crafted tar 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.1552 contains a patch for the vulnerability.

Scores

CVSSScoreVectorSource
3.14.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:LGitHub_M

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
vimvim
  • < 9.1.1552Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.