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

- Severity: High 8.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-25T15:16:16.015Z
- Modified: 2026-06-26T05:16:31.510Z
- 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 9.2.0699, Vim's Python omni-completion (runtime/autoload/python3complete.vim and the legacy pythoncomplete.vim) executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. When reconstructing that source, each scope's docstring is inserted verbatim between triple quotes with no escaping, so a hostile buffer can break out of the triple-quoted literal and execute attacker-controlled Python during omni-completion. This vulnerability is fixed in 9.2.0699.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0699; before 9.2.0699

## Every score

- GitHub_M: CVSS:4.0 8.4 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/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-ppj8-wqjf-6fp3> (vendor-advisory)
- <https://github.com/vim/vim/commit/cce141c42740f122dd8486ae04e21c2a81016ba8> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0699> (product)

## Sources

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

---

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