CVE-2026-52860
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-minimal | Amazon Linux | 2:9.0.2153-1.amzn2.0.7 |
| vim-common | Amazon Linux | 2:9.2.597-1.amzn2023.0.1 |
| vim-enhanced | Amazon Linux | 2:9.0.2153-1.amzn2.0.7 |
| vim-data | Amazon Linux | 2:9.0.2153-1.amzn2.0.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0597 |
| amazon:2 | vim-minimal | 0 |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| amazon:2023 | vim-common | 0 |
| amazon:2 | vim-enhanced | 0 |
| amazon:2 | vim-data | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| vim | vim | 0 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2023 | vim-data | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| alpine | vim | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| amazon:2023 | vim-enhanced | 0 |
| Red Hat | Red Hat Enterprise Linux 7 | |
| amazon:2 | xxd | 0 |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red 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
References
- https://github.com/vim/vim/security/advisories/GHSA-65p9-mwwx-7468 x_refsource_CONFIRM
- https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c x_refsource_MISC
- https://github.com/vim/vim/commit/c8c63673bc4253212820626aeeb75999d9a539d2 x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0597 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-52860 vdb
- RHBZ#2487987 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52860.json url