« List of all CVEs

CVE-2026-57456

Vim: Arbitrary Code Execution via Python Omni-Completion Docstrings

Published: 6/25/2026 Last updated: 6/26/2026 Reserved: 6/24/2026

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.

CNA assigner: GitHub_M (a0819718-46f1-4df5-94e2-005712e83aaa) Requested by: n/a

Metrics

Version Score Severity Vector String
4.0 8.4 High CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Opam packages affected (1)

conf-vim

Products affected (1)

Product Vendor Version
vim vim <= V4.75(AANV.2)C0

References (3)