CVE-2026-46483

Vim: Command injection in tar#Vimuntar via missing shellescape {special} flag

Published May 15, 2026 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
Description
Vim is an open source, command line text editor. Prior to 9.2.0479, a command injection vulnerability exists in tar#Vimuntar() in
runtime/autoload/tar.vim when decompressing .tgz archives on Unix-like systems. The function builds :!gunzip and :!gzip -d commands using shellescape(tartail) without the {special} flag, allowing a crafted archive filename to trigger Vim cmdline-special expansion and execute shell commands in the user's context. This vulnerability is fixed in 9.2.0479.

Analysis

AI-generated

Technical impact

The vulnerability resides in the tar#Vimuntar() function of Vim’s runtime autoload tar.vim, which builds shell commands without using the {special} flag for shellescape. A crafted .tgz archive filename can trigger Vim’s cmdline‑special expansion and allow execution of arbitrary shell commands in the user’s context. This constitutes a command‑line injection weakness (CWE‑78) and a shell‑execution flaw (CWE‑88). The CVSS score of 3.6 indicates moderate severity, reflecting that exploitation requires local user interaction and results in code execution with the victim’s privileges.

Affected Systems

All Vim users running versions before 9.2.0479 on Unix‑like operating systems are affected, as the issue exists in the tar.vim script bundled with those releases. The vulnerability is resolved in Vim 9.2.0479 and later. No specific operating‑system versions are limited; the flaw is tied solely to the Vim release.

Risk and Exploitability

The risk localized to systems where an attacker can place a malicious .tgz file and persuade a user to open it in Vim. The absence of an EPSS score and the lack of listing in CISA’s KEV catalogue suggest the exploit is not yet widespread. Nonetheless, the CVSS score of 3.6 and the fact that the exploit requires only local user interaction mean that an unpatched user could execute arbitrary commands. No external attack vector beyond local file handling is documented in the description.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vim to version 9.2.0479 or newer.
  • Until the upgrade is applied, avoid opening or extracting .tgz archives in Vim or restrict usage to trusted users.
  • Use a dedicated tool such as tar or gunzip to extract archives instead of the Vim function.

Generated by OpenCVE AI on May 15, 2026 at 16:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8415-1 Vim vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Vim
Vim vim
Vendors & Products Vim
Vim vim
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Vim is an open source, command line text editor. Prior to 9.2.0479, a command injection vulnerability exists in tar#Vimuntar() in runtime/autoload/tar.vim when decompressing .tgz archives on Unix-like systems. The function builds :!gunzip and :!gzip -d commands using shellescape(tartail) without the {special} flag, allowing a crafted archive filename to trigger Vim cmdline-special expansion and execute shell commands in the user's context. This vulnerability is fixed in 9.2.0479.
Title Vim: Command injection in tar#Vimuntar via missing shellescape {special} flag
Weaknesses CWE-78
CWE-88
References
Metrics cvssV3_1

{'score': 3.6, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 15, 2026, 3:57 PM
Reserved
May 14, 2026, 6:06 PM
Status
Analyzed
Published
May 15, 2026, 3:16 PM
Modified
Nov 11, 2026, 8:10 PM
Severity
Moderate
Public date
May 15, 2026, 2:57 PM