VDB

CVE-2026-52860

CVE-2026-52860 PUBLISHED CVSS 7.5 HIGH

Vim: Arbitrary Code Execution via Python Omni-Completion

Reported by github_m · Published June 11, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
vim-minimalAmazon Linux2:9.0.2153-1.amzn2.0.7
vim-commonAmazon Linux2:9.2.597-1.amzn2023.0.1
vim-enhancedAmazon Linux2:9.0.2153-1.amzn2.0.7
vim-dataAmazon Linux2:9.0.2153-1.amzn2.0.7

Risk scores

CVSS 4.0
7.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
vimvim< 9.2.0597
amazon:2vim-minimal0
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat OpenShift Container Platform 4
amazon:2023vim-common0
amazon:2vim-enhanced0
amazon:2vim-data0
Red HatRed Hat Enterprise Linux 10
vimvim0
Red HatRed Hat Enterprise Linux 6
amazon:2023vim-default-editor0
amazon:2023vim-data0
Red HatRed Hat Enterprise Linux 9
alpinevim0
Red HatRed Hat Enterprise Linux 8
amazon:2023vim-enhanced0
Red HatRed Hat Enterprise Linux 7
amazon:2xxd0
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat Enterprise Linux 8

…and 11 more

Timeline

  • Jun 11, 2026 CVE Published
  • Jun 12, 2026 Coalition ESS Score
  • Jun 14, 2026 Security Advisory (2 in total, the first dated here)
  • Aug 7, 2026 EPSS Score (23 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch
  • Sep 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-52860
vulnetix vdb fixes CVE-2026-52860

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-52860/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›