Vim — текстовый редактор командной строки с открытым исходным кодом. Vim распространяется с плагином tar.vim, который позволяет легко редактировать и просматривать (сжатые или несжатые) tar-файлы. Начиная с версии 9.1.0858, плагин tar.vim использует командную строку «:read» ex для добавления под позицией курсора, однако он не очищается и берется буквально из tar-архива.
Это позволяет выполнять команды оболочки через специальные созданные tar-архивы. Произойдет ли это на самом деле, зависит от используемой оболочки (опция «shell», устанавливаемая с помощью $SHELL). Проблема исправлена в патче Vim v9.1.1164.
Показать оригинальное описание (EN)
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
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Vim Vim
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
|
9.1.0858
|
9.1.1164
|
|
Netapp Hci_Compute_Node
cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*
|
— | — |