CVE-2026-52860
vim: Vim: Arbitrary code execution through Python omni-completion.
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 12, 2026
Updated · September 21, 2026
Description
A flaw was found in Vim, an open-source command-line text editor. The Python omni-completion feature executes reconstructed function and class definitions from the current buffer. A remote attacker can exploit this by crafting a hostile buffer, leading to the execution of attacker-controlled Python expressions during omni-completion. This vulnerability can result in arbitrary code execution.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 8CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CWE-94 · Improper Control of Generation of Code ('Code Injection')