High severity7.8NVD Advisory· Published Jun 25, 2026· Updated Jun 26, 2026
CVE-2026-57456
CVE-2026-57456
Description
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 products
9- osv-coords7 versionspkg:rpm/almalinux/vim-commonpkg:rpm/almalinux/vim-X11pkg:rpm/almalinux/vim-enhancedpkg:rpm/almalinux/vim-filesystempkg:rpm/almalinux/vim-minimalpkg:rpm/almalinux/vim-datapkg:rpm/almalinux/xxd
< 2:8.2.2637-26.el9_8.13+ 6 more
- (no CPE)range: < 2:8.2.2637-26.el9_8.13
- (no CPE)range: < 2:8.2.2637-26.el9_8.13
- (no CPE)range: < 2:8.2.2637-26.el9_8.13
- (no CPE)range: < 2:8.2.2637-26.el9_8.13
- (no CPE)range: < 2:8.2.2637-26.el9_8.13
- (no CPE)range: < 2:9.1.083-9.el10_2.12
- (no CPE)range: < 2:9.1.083-9.el10_2.12
Patches
Vulnerability mechanics
References
3News mentions
1- Vim: Eight Vulnerabilities Disclosed Together, Patched in 9.2.0699Vypr Intelligence · Jun 26, 2026