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

CVE-2026-46483
LOW 3.6

At a glance

Source
NVD
EPSS
EPSS 0.55 % · percentile 46 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-78 — Improper Neutralization of Special Elements used in an OS Command
  • CWE-88 — Improper Neutralization of Argument Delimiters in a Command

References

Scores

VersionScoreVectorScored by
CVSS 3.1LOW 3.6CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NGitHub_M
CVSS 3.1LOW 3.6CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NNVD · security-advisories@github.com (Secondary)
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
vim · vimaffected < 9.2.479

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD