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

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/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.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2026-06-11T18:32:32.722Z
- Modified: 2026-06-17T10:57:53.500Z
- Weaknesses: CWE-94, CWE-95, CWE-829
- 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.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.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0561; before 9.2.0561

## Every score

- GitHub_M: CVSS:4.0 7.3 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- 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-52mc-rq6p-rc7c> (mitigation, vendor-advisory)
- <https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8d> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0561> (product)

## Sources

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

---

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