Описание
Vim is an open source, command line text editor. Prior to 9.2.0845, StructMembers() in runtime/autoload/ccomplete.vim constructs and executes a vimgrep command using an insufficiently escaped typeref: or typename: value from a tags file, allowing an unterminated collection followed by a command separator to execute arbitrary Ex and operating-system commands when a user invokes C omni-completion with CTRL-X CTRL-O on a member access whose type is resolved from that tags file. This issue is fixed in version 9.2.0845.
A flaw was found in Vim, an open-source command-line text editor. An attacker could craft a malicious tags file that, when processed by Vim's C omni-completion feature, leads to insufficient escaping of input. This vulnerability allows for the execution of arbitrary Ex commands and, subsequently, operating-system commands on the user's system. Successful exploitation requires a user to open a C file from an attacker-controlled tree and invoke C omni-completion on a member access whose type is resolved from the malicious tags file.
Отчет
This is an Important vulnerability in Vim where a local attacker could achieve arbitrary command execution. By crafting a malicious tags file and enticing a user to open a C file from an untrusted source and invoke C omni-completion, the attacker could execute arbitrary commands in the context of the user running Vim. This is considered Important due to the potential for full user-level compromise, despite requiring specific user interaction and a crafted file.
Меры по смягчению последствий
To mitigate this issue, users should avoid opening C source files from untrusted sources, especially when accompanied by untrusted tags files. Exercise caution when invoking C omni-completion (CTRL-X CTRL-O) on files from unknown or suspicious origins.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 6 | vim | Affected | ||
| Red Hat Enterprise Linux 7 | vim | Affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Will not fix | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Will not fix | ||
| Red Hat OpenShift Container Platform 5 | openshift/ose-rhel-coreos-9 | Will not fix | ||
| Red Hat Enterprise Linux 10 | vim | Fixed | RHSA-2026:75769 | 05.10.2026 |
| Red Hat Enterprise Linux 8 | vim | Fixed | RHSA-2026:77359 | 07.10.2026 |
| Red Hat Enterprise Linux 8 | vim | Fixed | RHSA-2026:77359 | 07.10.2026 |
| Red Hat Enterprise Linux 9 | vim | Fixed | RHSA-2026:75768 | 06.10.2026 |
| Red Hat Enterprise Linux 9 | vim | Fixed | RHSA-2026:75768 | 06.10.2026 |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
7.3 High
CVSS3
Связанные уязвимости
Vim is an open source, command line text editor. Prior to 9.2.0845, StructMembers() in runtime/autoload/ccomplete.vim constructs and executes a vimgrep command using an insufficiently escaped typeref: or typename: value from a tags file, allowing an unterminated collection followed by a command separator to execute arbitrary Ex and operating-system commands when a user invokes C omni-completion with CTRL-X CTRL-O on a member access whose type is resolved from that tags file. This issue is fixed in version 9.2.0845.
Vim is an open source, command line text editor. Prior to 9.2.0845, StructMembers() in runtime/autoload/ccomplete.vim constructs and executes a vimgrep command using an insufficiently escaped typeref: or typename: value from a tags file, allowing an unterminated collection followed by a command separator to execute arbitrary Ex and operating-system commands when a user invokes C omni-completion with CTRL-X CTRL-O on a member access whose type is resolved from that tags file. This issue is fixed in version 9.2.0845.
Vim is an open source, command line text editor. Prior to 9.2.0845, St ...
7.3 High
CVSS3