Affected versions
Ubuntu22.04:LTS/vim
- Affected versions
- <2:8.2.3995-1ubuntu2.32
- Fixed version
- 2:8.2.3995-1ubuntu2.32
Ubuntu24.04:LTS/vim
- Affected versions
- <2:9.1.0016-1ubuntu7.16
- Fixed version
- 2:9.1.0016-1ubuntu7.16
Ubuntu25.10/vim
- Affected versions
- <2:9.1.0967-1ubuntu6.7
- Fixed version
- 2:9.1.0967-1ubuntu6.7
Ubuntu26.04:LTS/vim
- Affected versions
- <2:9.1.2141-1ubuntu4.5
- Fixed version
- 2:9.1.2141-1ubuntu4.5
UbuntuPro:14.04:LTS/vim
- Affected versions
- <2:7.4.052-1ubuntu3.1+esm29
- Fixed version
- 2:7.4.052-1ubuntu3.1+esm29
UbuntuPro:16.04:LTS/vim
- Affected versions
- <2:7.4.1689-3ubuntu1.5+esm35
- Fixed version
- 2:7.4.1689-3ubuntu1.5+esm35
UbuntuPro:18.04:LTS/vim
- Affected versions
- <2:8.0.1453-1ubuntu1.13+esm20
- Fixed version
- 2:8.0.1453-1ubuntu1.13+esm20
UbuntuPro:20.04:LTS/vim
- Affected versions
- <2:8.1.2269-1ubuntu5.32+esm8
- Fixed version
- 2:8.1.2269-1ubuntu5.32+esm8
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.
Links
- https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8d
- https://github.com/vim/vim/releases/tag/v9.2.0561
- https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c
- https://ubuntu.com/security/CVE-2026-52858
- https://ubuntu.com/security/notices/USN-8451-1
- https://www.cve.org/CVERecord?id=CVE-2026-52858

