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

exploitDog

redhat логотип

CVE-2026-52858

Опубликовано: 11 июн. 2026
Источник: redhat
CVSS3: 7.3
EPSS Низкий

Описание

Vim is an open source, command line text editor. Prior to version 9.2.0561, the Python omni-completion script in python3complete.vim for Vim with the +python3 interpreter enabled (and the legacy pythoncomplete.vim for builds with the +python interpreter) executes the import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user. This issue has been patched in version 9.2.0561.

A flaw was found in Vim, a widely used command-line text editor. This vulnerability allows a local attacker to execute arbitrary code on the system. By opening a specially crafted Python file and then triggering the omni-completion feature, the attacker can cause Vim to run malicious code from a sibling Python package. This could lead to a complete compromise of the user's system.

Отчет

This is an Important vulnerability in Vim that allows a local attacker to achieve arbitrary code execution. The flaw occurs when a user opens a specially crafted Python file and invokes omni-completion, leading to the execution of malicious code from a co-located Python package. This risk is present in Red Hat Enterprise Linux and other products where Vim is deployed with Python omni-completion enabled, potentially compromising the editing user's system.

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

Users can mitigate this vulnerability by disabling Python omni-completion in Vim if it is not essential for their workflow. This prevents the execution of untrusted Python code when opening hostile files. To disable this feature, ensure that the omnifunc option in your Vim configuration (e.g., ~/.vimrc) is not set to pythoncomplete#Complete or python3complete#Complete. Alternatively, users should avoid invoking omni-completion (Ctrl-X Ctrl-O) on Python files from untrusted sources. Disabling Python omni-completion may affect Python development functionality within Vim.

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

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Affected
Red Hat Enterprise Linux 10vimFixedRHSA-2026:3850913.07.2026
Red Hat Enterprise Linux 10.0 Extended Update SupportvimFixedRHSA-2026:5543117.08.2026
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONvimFixedRHSA-2026:6912821.09.2026
Red Hat Enterprise Linux 7 Extended Lifecycle SupportvimFixedRHSA-2026:6871117.09.2026
Red Hat Enterprise Linux 8vimFixedRHSA-2026:3851013.07.2026
Red Hat Enterprise Linux 8vimFixedRHSA-2026:3851013.07.2026
Red Hat Enterprise Linux 9vimFixedRHSA-2026:3851113.07.2026
Red Hat Enterprise Linux 9vimFixedRHSA-2026:3851113.07.2026

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

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

Статус:

Important
Дефект:
CWE-94
https://bugzilla.redhat.com/show_bug.cgi?id=2487981vim: Vim: Arbitrary code execution via Python omni-completion

EPSS

Процентиль: 10%
0.00201
Низкий

7.3 High

CVSS3

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

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

Vim is an open source, command line text editor. Prior to version 9.2.0561, the Python omni-completion script in python3complete.vim for Vim with the +python3 interpreter enabled (and the legacy pythoncomplete.vim for builds with the +python interpreter) executes the import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user. This issue has been patched in version 9.2.0561.

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

Vim is an open source, command line text editor. Prior to version 9.2.0561, the Python omni-completion script in python3complete.vim for Vim with the +python3 interpreter enabled (and the legacy pythoncomplete.vim for builds with the +python interpreter) executes the import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user. This issue has been patched in version 9.2.0561.

msrc
5 месяцев назад

Vim: Arbitrary Code Execution via Python Omni-Completion

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

Vim is an open source, command line text editor. Prior to version 9.2. ...

CVSS3: 8
redos
3 месяца назад

Уязвимость vim

EPSS

Процентиль: 10%
0.00201
Низкий

7.3 High

CVSS3