REDHAT-BUG-2487987: High severity vim Vim vulnerability
Vim is an open source, command line text editor. Prior to version 9.2.0597, Vim's Python omni-completion executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. Python evaluates function default values, parameter annotations, and class base expressions at definition time, so a hostile buffer can execute attacker-controlled Python expressions during omni-completion. The existing g:pythoncompleteallowimport mitigation (GHSA-52mc-rq6p-rc7c) does not cover this path, because the attacker-controlled code is not a harvested import/from statement. This issue has been patched in version 9.2.0597.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Vimto a version that resolves this vulnerability.Fixed in 9.2.0597
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2487987?
The severity of REDHAT-BUG-2487987 is classified as high, with a score of 7.
What is the vulnerability described in REDHAT-BUG-2487987?
REDHAT-BUG-2487987 describes a vulnerability in Vim where the Python omni-completion executes reconstructed function and class definitions using exec() before version 9.2.0597.
How do I fix REDHAT-BUG-2487987?
To fix REDHAT-BUG-2487987, upgrade Vim to version 9.2.0597 or later.
What risks are associated with REDHAT-BUG-2487987?
The risks associated with REDHAT-BUG-2487987 include the potential execution of arbitrary code due to Python code execution in the completion process.
Which software is affected by REDHAT-BUG-2487987?
The affected software by REDHAT-BUG-2487987 is Vim, specifically versions prior to 9.2.0597.