CVE-2026-57452

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

History

26 Jun 2026, 04:12

Type Values Removed Values Added
References () https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f - () https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f - Patch
References () https://github.com/vim/vim/releases/tag/v9.2.0671 - () https://github.com/vim/vim/releases/tag/v9.2.0671 - Product
References () https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486 - () https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486 - Vendor Advisory
First Time Vim vim
Vim
CPE cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

25 Jun 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-25 16:16

Updated : 2026-06-26 04:12


NVD link : CVE-2026-57452

Mitre link : CVE-2026-57452

CVE.ORG link : CVE-2026-57452


JSON object : View

Products Affected

vim

  • vim
CWE
CWE-125

Out-of-bounds Read

CWE-191

Integer Underflow (Wrap or Wraparound)