CVE-2026-52858

Vim: Arbitrary Code Execution via Python Omni-Completion

HIGH
7.8
CVSS Score
Published: June 11, 2026 at 06:32 PM UTC
Updated: June 17, 2026 at 10:57 AM 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.0561, the Python omni-completion script in python3complete.vim for Vim with the +python3 interpreter enabled (and the legacy pythoncomplete.vim for builds with the +python interpreter) executes the import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user. This issue has been patched in version 9.2.0561.

Affected

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

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

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

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.0561

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

StatusANALYZED
CWE
CWE-94CWE-95CWE-829

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