REDHAT-BUG-2492972: High severity vim Vim vulnerability

Published Jun 25, 2026
·
Updated

Vim is an open source, command line text editor. Prior to 9.2.0699, Vim's Python omni-completion (runtime/autoload/python3complete.vim and the legacy pythoncomplete.vim) executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. When reconstructing that source, each scope's docstring is inserted verbatim between triple quotes with no escaping, so a hostile buffer can break out of the triple-quoted literal and execute attacker-controlled Python during omni-completion. This vulnerability is fixed in 9.2.0699.

Affected Software

1 affected component
vim Vim<9.2.0699

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.0699

Event History

Jun 25, 2026
Data Sourced
via Red Hat·04:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2492972?

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

2

How do I fix REDHAT-BUG-2492972?

To fix REDHAT-BUG-2492972, update Vim to version 9.2.0699 or later.

3

What is the impact of REDHAT-BUG-2492972?

The impact of REDHAT-BUG-2492972 is that it allows execution of arbitrary code via the Python omni-completion feature.

4

Which versions of Vim are affected by REDHAT-BUG-2492972?

Versions of Vim prior to 9.2.0699 are affected by REDHAT-BUG-2492972.

5

Is the vulnerability in REDHAT-BUG-2492972 related to Python?

Yes, REDHAT-BUG-2492972 involves Vim's Python omni-completion feature which is susceptible to executing arbitrary code.

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