{"id":"CVE-2026-52858","aliases":["CVE-2026-52858"],"related":[],"kind":"vulnerability","state":"published","title":"Vim: Arbitrary Code Execution via Python Omni-Completion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-06-11T18:32:32.722Z","modified":"2026-06-17T10:57:53.500Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-94","CWE-95","CWE-829"],"affected":[{"ranges":[{"version":"< 9.2.0561","status":"affected"}],"vendor":"vim","product":"vim","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"9.2.0561"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c","tags":["mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8d","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0561","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-12T03:55:43.719Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52858","url":"https://www.cve.org/CVERecord?id=CVE-2026-52858","licence":"CVE Terms of Use","modified":"2026-06-12T12:48:03.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52858","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52858","licence":"Public domain","modified":"2026-06-17T10:57:53.500Z"}],"updatedAt":"2026-11-25T22:59:24.460Z","epss":{"score":0.00201,"percentile":0.10587,"date":"2026-12-02T12:00:21.000Z"}}