Name | CVE-2025-27423 |
Description | 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 |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1099610 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
vim (PTS) | bullseye | 2:8.2.2434-3+deb11u1 | fixed |
bullseye (security) | 2:8.2.2434-3+deb11u3 | fixed | |
bookworm | 2:9.0.1378-2+deb12u2 | fixed | |
sid, trixie | 2:9.1.1230-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
vim | source | bullseye | (not affected) | |||
vim | source | bookworm | (not affected) | |||
vim | source | (unstable) | 2:9.1.1230-1 | 1099610 |
[bookworm] - vim <not-affected> (The vulnerable code was introduced later)
[bullseye] - vim <not-affected> (The vulnerable code was introduced later)
https://github.com/vim/vim/security/advisories/GHSA-wfmf-8626-q3r3
Introduced with: https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29 (v9.1.0858)
Fixed by: https://github.com/vim/vim/commit/334a13bff78aa0ad206bc436885f63e3a0bab399 (v9.1.1164)