Command Line Text Editor Vulnerability in Vim by Vim
CVE-2026-57452
5.5MEDIUM
What is CVE-2026-57452?
Vim, the widely used open-source command line text editor, contains a vulnerability that arises when opening files encrypted with the VimCrypt~04! or VimCrypt~05! methods, specifically using the xchacha20poly1305 algorithm and requiring the +sodium feature. When these files have a body shorter than a single libsodium secretstream header, an unsigned length calculation can underflow, leading to a buffer overflow during decryption. This mishandling can crash Vim, making it critical for users to update to version 9.2.0671 where this issue is addressed.
Affected Version(s)
vim < 9.2.0671
