CVE-2026-57452
MEDIUMVim: Out-of-bounds Read with libsodium-encrypted Files
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486
X_Refsource_Misc x_refsource_misc
https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f
X_Refsource_Misc x_refsource_misc
https://github.com/vim/vim/releases/tag/v9.2.0671
Scores
CVSS v3
5.5
EPSS
0.0012
EPSS Percentile
2.1%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-125
CWE-191
Status
published
Products (1)
vim/vim
< 9.2.0671 (2 CPE variants)
Published
Jun 25, 2026
Tracked Since
Jun 25, 2026