CVE-2026-57452 Vim: Out-of-bounds Read with libsodium-encrypted Files
An attacker can cause a denial of service in Vim by providing a specially crafted encrypted file that triggers an integer underflow and out-of-bounds read.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-57452?
CVE-2026-57452 is a medium-severity vulnerability in Vim Vim, published on 25 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Vim is an open source, command line text editor. Prior to 9.2.0671, when Vim opens a file encrypted with the VimCrypt~04! or VimCrypt~05! method (xchacha20poly1305, requires the +sodium feature) whose body is shorter than a single libsodium secretstream header, an unsigned length calculation underflows and a subsequent decryption call reads far past the end of the input buffer, crashing Vim. This vulnerability is fixed in 9.2.0671.
Which versions are affected by CVE-2026-57452?
It affects 1 product.
Products include Vim Vim.
How do I fix CVE-2026-57452?
Upgrade to a fixed version.
Is CVE-2026-57452 being exploited?
There is no known exploitation of CVE-2026-57452 in the wild and no public exploit code.
Other vulnerabilities in Vim Vim
Sources
Also known as ALPINE-CVE-2026-57452, AZL-91098, BELL-CVE-2026-57452, DEBIAN-CVE-2026-57452, ECHO-36e6-1a60-39db, GHSA-c4j9-wr9j-4486 and 2 more.