High [CVE-2026-57456] Arbitrary code execution via malicious docstrings in Python omni-completion
This high-severity Red Hat Linux advisory covers CVE-2026-57456 affecting Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION, Red Hat Enterprise Linux 7 Extended Lifecycle Support.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published Record updated
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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.
There is a security flaw in Vim. If you use Vim to open a malicious file written by a hacker, and you use the auto-complete feature while typing, the file can secretly force your computer to run unauthorized commands or malware.
This flaw is rated as Important. A vulnerability in Vim's Python omni-completion feature allows for arbitrary code execution.
Red Hat severity: Important — CVSS 7.8 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). Weakness: CWE-94.
Affected products named by the advisory: Red Hat Enterprise Linux 10.0 Extended Update Support; Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION; Red Hat Enterprise Linux 7 Extended Lifecycle Support; Red Hat Enterprise Linux 8; and 6 more.
- < 9.2.0699
Official advisory · high-confidence parse· fetched 13 days ago·verify at source
- 9.2.0699
- vim-2:9.1.083-9.el10_2.12
- vim-2:9.1.083-5.el10_0.4
- vim-2:7.4.629-5.el6_10.4
- vim-2:7.4.629-8.el7_9.2
- vim-2:8.0.1763-31.el8_10
- vim-2:8.2.2637-26.el9_8.13
- rhcos-4.22.9.8.202608130832-0
- vim-main-9.2.780-1.hum1
- insights-proxy/insights-proxy-container-rhel9:1786433656
- rhui5/cds-kubernetes-rhel9:1786435241
- rhui5/cds-rhel9:1786533457
- rhui5/haproxy-rhel9:1786533449
- rhui5/installer-rhel9:1786435483
- rhui5/rhua-rhel9:1786533529
- rhui5/cds-kubernetes-tp-rhel9:1787241211
- rhui5/installer-tp-rhel9:1787135742
- rhui5/rhua-tp-rhel9:1787241260
- RHSA-2026:48650
- RHSA-2026:55431
- RHSA-2026:69128
- RHSA-2026:68711
- RHSA-2026:48703
- RHSA-2026:47982
- RHSA-2026:54769
- RHSA-2026:35387
- RHSA-2026:53371
- RHSA-2026:54387
- RHSA-2026:58981
Official advisory · high-confidence parse· fetched 13 days ago·verify at source
Mitigation checklist
- To mitigate this vulnerability, users should avoid opening untrusted Python files or using Python omni-completion on such files. If Python omni-completion is not required, it can be disabled by adding `autocmd FileType python setlocal omnifunc=` to your `.vimrc` file. This will prevent the vulnerable code from being executed. Disabling Python omni-completion will remove the ability to use `Ctrl-X Ctrl-O` for Python code completion. A restart of Vim is required for the changes to take effect.
Official advisory · high-confidence parse· fetched 13 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.