{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-52858: Vim: Arbitrary Code Execution via Python Omni-Completion","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-52858","status":"final","version":"1","initial_release_date":"2026-06-11T18:32:32.722Z","current_release_date":"2026-06-12T12:48:03.075Z","revision_history":[{"date":"2026-06-11T18:32:32.722Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","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.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-52858 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-52858"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-52858"},{"category":"external","summary":"https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c","url":"https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c"},{"category":"external","summary":"https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8d","url":"https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8d"},{"category":"external","summary":"https://github.com/vim/vim/releases/tag/v9.2.0561","url":"https://github.com/vim/vim/releases/tag/v9.2.0561"}]},"product_tree":{"branches":[{"category":"vendor","name":"vim","branches":[{"category":"product_name","name":"vim","branches":[{"category":"product_version","name":"< 9.2.0561","product":{"name":"vim vim < 9.2.0561","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:vim:vim:\\<_9.2.0561:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-52858","title":"Vim: Arbitrary Code Execution via Python Omni-Completion","notes":[{"category":"description","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.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1"]},"scores":[{"cvss_v4":{"version":"4.0","vectorString":"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","baseScore":7.3,"baseSeverity":"HIGH"},"products":["CSAFPID-1"]}],"remediations":[{"category":"none_available","details":"No fixed version is published yet. Monitor the upstream advisory.","product_ids":["CSAFPID-1"]}]}]}