CVE-2026-57456CWE-94

Vim: Arbitrary Code Execution via Python Omni-Completion Docstrings

High · published June 25, 2026

CVSS v4.0
8.4
EPSS
0%
Percentile
3.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.4 · HIGH
Vector
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
EPSS
0.00145 · 3.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-06-25T15:16Z
EPSS history
Timeline
  • 25 JUN 15:16Z
    Vim: Arbitrary Code Execution via Python Omni-Completion Docstrings
    cvelistv5