Bug 2492972 (CVE-2026-57456) - CVE-2026-57456 vim: Vim: Arbitrary code execution via malicious docstrings in Python omni-completion
Summary: CVE-2026-57456 vim: Vim: Arbitrary code execution via malicious docstrings in...
Keywords:
Status: NEW
Alias: CVE-2026-57456
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2496813
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-25 16:02 UTC by OSIDB Bzimport
Modified: 2026-07-30 13:50 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:47982 0 None None None 2026-07-29 17:34:12 UTC
Red Hat Product Errata RHSA-2026:48650 0 None None None 2026-07-30 13:50:49 UTC
Red Hat Product Errata RHSA-2026:48703 0 None None None 2026-07-30 10:48:04 UTC

Description OSIDB Bzimport 2026-06-25 16:02:01 UTC
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.

Comment 4 errata-xmlrpc 2026-07-29 17:34:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:47982 https://access.redhat.com/errata/RHSA-2026:47982

Comment 5 errata-xmlrpc 2026-07-30 10:48:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:48703 https://access.redhat.com/errata/RHSA-2026:48703

Comment 6 errata-xmlrpc 2026-07-30 13:50:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:48650 https://access.redhat.com/errata/RHSA-2026:48650


Note You need to log in before you can comment on or make changes to this bug.