{"id":"CVE-2025-27423","published":"2025-03-03T16:30:19Z","modified":"2025-05-02T23:03:02Z","title":"Improper Input Validation in Vim","vendor":"vim","product":"vim","tier":"tail","description":{"text":"Vim is an open source, command line text editor. Vim is distributed with the tar.vim plugin, that allows easy editing and viewing of (compressed or uncompressed) tar files. Starting with 9.1.0858, the tar.vim plugin uses the \":read\" ex command line to append below the cursor position, however the is not sanitized and is taken literally from the tar archive. This allows to execute shell commands via special crafted tar archives. Whether this really happens, depends on the shell being used ('shell' option, which is set using $SHELL). The issue has been fixed as of Vim patch v9.1.1164","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.22474,"percentile":0.97756,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-wfmf-8626-q3r3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29","tags":["x_refsource_MISC"]},{"url":"https://github.com/vim/vim/commit/334a13bff78aa0ad206bc436885f63e3a0bab399","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20250502-0002/","tags":[]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.55},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim","versions":["< 9.1.1164"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-03-03T18:42:38.611702Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"Vim's bundled tar.vim plugin, which lets users edit and view compressed or uncompressed tar archives, fails to sanitise file names taken from a tar archive before passing them to the \":read\" ex command, so special characters in those names are interpreted as shell commands. An attacker needs to supply a specially crafted tar archive that the victim opens in Vim, requiring user interaction, and whether commands actually run depends on the shell configured in Vim's 'shell' option.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:02:33Z"},"euvd":{"id":"EUVD-2025-6012","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2019-20807","children":[{"from":"CVE-2025-27423","to":"CVE-2025-53905","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["runtime/autoload/tar.vim"],"commits":["https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29","https://github.com/vim/vim/commit/334a13bff78aa0ad206bc436885f63e3a0bab399","https://github.com/vim/vim/commit/87757c6b0a4b2c1f71c72ea8e1438b8fb116b239"],"basis":"shared function","functions":["Read","Write","exists"]}]}]}}