Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-73077

Опубликовано: 11 авг. 2026
Источник: redhat
CVSS3: 7.3

Описание

Vim is an open source, command line text editor. Prior to 9.2.0839, the runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode selections from K through keywordprg commands without safely separating shell arguments. fnameescape() and PATH_ESC_CHARS do not neutralize shell metacharacters before ShKeywordPrg, ZshKeywordPrg, or GetHelp invokes bash, zsh, or PowerShell, allowing arbitrary operating-system commands to execute with the privileges of the user running Vim. This issue is fixed in version 9.2.0839.

A vulnerability in Vim's shell script plugins (sh.vim, zsh.vim, ps1.vim) allows arbitrary code execution if a user selects maliciously crafted text in Visual mode and triggers a keyword lookup, due to improperly escaped shell metacharacters.

Отчет

This Important vulnerability in Vim's shell plugins allows full system compromise in Red Hat environments if a user selects crafted text in Visual mode and triggers a keyword lookup. This does not affect RHEL 8 and older versions.

Меры по смягчению последствий

To mitigate this vulnerability, users can disable the keywordprg option for shell script filetypes. This prevents Vim from executing external commands via the K command with potentially untrusted input. Create or edit the following files in your Vim configuration directory:

  • ~/.vim/after/ftplugin/sh.vim: setlocal keywordprg=
  • ~/.vim/after/ftplugin/zsh.vim: setlocal keywordprg=
  • ~/.vim/after/ftplugin/ps1.vim: setlocal keywordprg= This change takes effect the next time a shell script is opened in Vim.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6vimNot affected
Red Hat Enterprise Linux 7vimNot affected
Red Hat Enterprise Linux 8vimNot affected
Red Hat Hardened ImagesvimNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Not affected
Red Hat Enterprise Linux 10vimFixedRHSA-2026:6633610.09.2026
Red Hat Enterprise Linux 9vimFixedRHSA-2026:6636610.09.2026
Red Hat Enterprise Linux 9vimFixedRHSA-2026:6636610.09.2026

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-78
https://bugzilla.redhat.com/show_bug.cgi?id=2514065vim: Vim: Arbitrary Code Execution via Insecure Shell Command Handling

7.3 High

CVSS3

Связанные уязвимости

CVSS3: 7.8
ubuntu
3 месяца назад

Vim is an open source, command line text editor. Prior to 9.2.0839, the runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode selections from K through keywordprg commands without safely separating shell arguments. fnameescape() and PATH_ESC_CHARS do not neutralize shell metacharacters before ShKeywordPrg, ZshKeywordPrg, or GetHelp invokes bash, zsh, or PowerShell, allowing arbitrary operating-system commands to execute with the privileges of the user running Vim. This issue is fixed in version 9.2.0839.

CVSS3: 7.8
nvd
3 месяца назад

Vim is an open source, command line text editor. Prior to 9.2.0839, the runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode selections from K through keywordprg commands without safely separating shell arguments. fnameescape() and PATH_ESC_CHARS do not neutralize shell metacharacters before ShKeywordPrg, ZshKeywordPrg, or GetHelp invokes bash, zsh, or PowerShell, allowing arbitrary operating-system commands to execute with the privileges of the user running Vim. This issue is fixed in version 9.2.0839.

msrc
3 месяца назад

Vim: Arbitrary Code Execution via Shell Keyword Lookup

CVSS3: 7.8
debian
3 месяца назад

Vim is an open source, command line text editor. Prior to 9.2.0839, th ...

CVSS3: 7.8
redos
2 месяца назад

Уязвимость vim

7.3 High

CVSS3