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

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-06-11T18:33:45.838Z
- Modified: 2026-09-17T12:18:23.923Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0597; before 9.2.0597
- vim: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given

## Every score

- GitHub_M: CVSS:4.0 7.5 High `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`
- redhat-SADP: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-65p9-mwwx-7468> (vendor-advisory)
- <https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c> (mitigation, vendor-advisory)
- <https://github.com/vim/vim/commit/c8c63673bc4253212820626aeeb75999d9a539d2> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0597> (product)
- <https://access.redhat.com/security/cve/CVE-2026-52860> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2487987> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52860.json>

## Sources

- CVE List: [CVE-2026-52860](https://www.cve.org/CVERecord?id=CVE-2026-52860), CVE Terms of Use, modified 2026-09-17
- NVD: [CVE-2026-52860](https://nvd.nist.gov/vuln/detail/CVE-2026-52860), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2026-52860 · Whole record: https://cve.day/CVE-2026-52860.json · Rebuilt by cve.day 2026-11-25T22:59:24.460Z
