Path Traversal Vulnerability in Vim Package: Risk of Arbitrary File Overwriting

vim Updated 02 Oct 2025

Summary

15/07/2025
N/A
No i
Medium
4.1

UBUNTU-CVE-2025-53905: Vim is an open source, command line text editor. Affects vim versions 2:7.4.000-1ubuntu2 – 2:7.4.052-1ubuntu3.1+esm9. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Vim is a widely used open-source command line text editor, known for its efficiency and versatility in editing text files. It supports various plugins and features, making it a popular choice among developers and system administrators. However, prior to version 9.1.1552, Vim's tar.vim plugin was susceptible to a path traversal vulnerability, which could allow maliciously crafted tar archives to overwrite arbitrary files on the system.

Vulnerability Detail

The vulnerability arises from a flaw in the tar.vim plugin of Vim, which fails to properly validate file paths when opening tar archives. This oversight can be exploited by an attacker to craft a tar file that, when opened in Vim, can overwrite sensitive files or place executable code in privileged locations. Although the impact is considered low due to the requirement of direct user interaction, successful exploitation could lead to arbitrary command execution on the underlying operating system, posing a significant risk to system integrity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid opening tar files with Vim until they have updated to the patched version. Additionally, users should exercise caution when handling tar files from untrusted sources.

Conclusion

The path traversal vulnerability in the Vim package poses a risk of arbitrary file overwriting, which could lead to severe consequences if exploited. Users are strongly advised to update to the latest patched version to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and manage open-source vulnerabilities effectively.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 4.1, indicating a medium severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability could allow an attacker to overwrite sensitive files or execute arbitrary commands on the system.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

If you cannot update Vim immediately, avoid opening tar files from untrusted sources and consider using alternative text editors until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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