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.
Severity (CVSS)
| Base score | 5.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-125 — CWE-125: Out-of-bounds Read
- CWE-191 — CWE-191: Integer Underflow (Wrap or Wraparound)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0671 |
References
- https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486 (x_refsource_CONFIRM)
- https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f (x_refsource_MISC)
- https://github.com/vim/vim/releases/tag/v9.2.0671 (x_refsource_MISC)
Generated from the official CVE List on 26 Jun 2026 07:05 UTC.