# CVE-2026-57452: Vim: Out-of-bounds Read with libsodium-encrypted Files

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-25T15:27:50.147Z
- Modified: 2026-06-26T04:12:32.483Z
- Weaknesses: CWE-125, CWE-191
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0671; before 9.2.0671

## References

- <https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486> (vendor-advisory)
- <https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0671> (product)

## Sources

- CVE List: [CVE-2026-57452](https://www.cve.org/CVERecord?id=CVE-2026-57452), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-57452](https://nvd.nist.gov/vuln/detail/CVE-2026-57452), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-57452 · Whole record: https://cve.day/CVE-2026-57452.json · Rebuilt by cve.day 2026-11-25T22:59:26.380Z
