8

CVE-2026-52860: Vim: Arbitrary Code Execution via Python Omni-Completion

Modified
AliasesALPINE-CVE-2026-52860UBUNTU-CVE-2026-52860DEBIAN-CVE-2026-52860
Published 11-06-2026Last modified 17-09-2026

Vulnerability summary

CVE-2026-52860 is a high (CVSS 8.0) Improper Control of Generation of Code vulnerability in vim. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 13.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.0/10
010
High · v3.1 (CVE.org)
EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 1

Timeline

  1. 11-06-2026
    PublishedVulnerability first disclosed.
  2. 17-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.22%

Chance of exploitation in the next 30 days

Percentile

14%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.22% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • vim< 9.2.0602-r0
Debian1 product
  • vimAll versions (No fix recorded) | < 2:9.1.1230-2+deb13u1 | < 2:9.2.0782-1
Ubuntu1 product
  • vim< 2:7.4.052-1ubuntu3.1+esm29 | < 2:7.4.1689-3ubuntu1.5+esm35 | < 2:8.0.1453-1ubuntu1.13+esm20 | < 2:8.1.2269-1ubuntu5.32+esm8 | < 2:8.2.3995-1ubuntu2.32 | < 2:9.1.0016-1ubuntu7.16 | < 2:9.1.0967-1ubuntu6.7 | < 2:9.1.2141-1ubuntu4.5
Vim1 product

4 vendors · 4 products

References

13 links
Show all 13 references