REDHAT-BUG-2487987: High severity vim Vim vulnerability

Published Jun 11, 2026
·
Updated

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

1 affected component
vim Vim<9.2.0597

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.2.0597

Event History

Jun 11, 2026
Data Sourced
via Red Hat·07:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2487987?

The severity of REDHAT-BUG-2487987 is classified as high, with a score of 7.

2

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.

3

How do I fix REDHAT-BUG-2487987?

To fix REDHAT-BUG-2487987, upgrade Vim to version 9.2.0597 or later.

4

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.

5

Which software is affected by REDHAT-BUG-2487987?

The affected software by REDHAT-BUG-2487987 is Vim, specifically versions prior to 9.2.0597.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203