CVE-2026-52860

Vim: Arbitrary Code Execution via Python Omni-Completion

HIGH
7.8
CVSS Score
Published: June 11, 2026 at 06:33 PM UTC
Updated: September 17, 2026 at 12:18 PM UTC
1 product affected across 1 vendorVim

Using vim by vim?

Get instant alerts when new vulnerabilities affect vim - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

Vim is an open source, command line text editor. Prior to version 9.2.0597, Vim's Python omni-completion executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. Python evaluates function default values, parameter annotations, and class base expressions at definition time, so a hostile buffer can execute attacker-controlled Python expressions during omni-completion. The existing g:pythoncomplete_allow_import mitigation (GHSA-52mc-rq6p-rc7c) does not cover this path, because the attacker-controlled code is not a harvested import/from statement. This issue has been patched in version 9.2.0597.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 9.2.0597
Affected range stops below 9.2.0597, so it looks safe — our inference, not a vendor statement

References (7)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/vim/vim/security/advisories/GHSA-65p9-mwwx-7468
x_refsource_CONFIRMx_refsource_MISCMitigationVendor Advisory
Source: cverecord
https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c
x_refsource_MISCProduct
Source: cverecord
https://github.com/vim/vim/releases/tag/v9.2.0597
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/security/cve/CVE-2026-52860
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://bugzilla.redhat.com/show_bug.cgi?id=2487987

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card