Out-of-bounds read in Vim - CVE-2026-57452
Published: June 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to out-of-bounds read in crypt_sodium_buffer_decode() when parsing a crafted libsodium-encrypted file. A remote attacker can trick the victim into opening a crafted file and entering a key to cause a denial of service.
Only instances built with the +sodium feature are vulnerable, and the issue affects files using the VimCrypt~04! or VimCrypt~05! encryption method.
Affected software
Ubuntu
openEuler
vim (Ubuntu package)
vim
vim-X11
vim-common
vim-debuginfo
vim-debugsource
vim-enhanced
vim-minimal
vim-filesystem
How to mitigate CVE-2026-57452
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm30, 2:7.4.1689-3ubuntu1.5+esm36, 2:8.0.1453-1ubuntu1.13+esm21, 2:8.1.2269-1ubuntu5.32+esm9, 2:8.2.3995-1ubuntu2.33, 2:9.1.0016-1ubuntu7.17, 2:9.1.0967-1ubuntu6.8, 2:9.1.2141-1ubuntu4.6
vim - update to 9.0.2092-38
vim-X11 - update to 9.0.2092-38
vim-common - update to 9.0.2092-38
vim-debuginfo - update to 9.0.2092-38
vim-debugsource - update to 9.0.2092-38
vim-enhanced - update to 9.0.2092-38
vim-minimal - update to 9.0.2092-38
vim-filesystem - update to 9.0.2092-38