Vim is an open source, command line text editor. Prior to 9.2.0671, when Vim opens a file encrypted with the VimCrypt04! or VimCrypt05!
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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"vim:vim": [
"< 9.2.0671"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-57452",
"id": "CVE-2026-57452",
"imported": "2026-12-02T14:11:18.586Z",
"modified": "2026-06-26T04:12:32.483Z",
"published": "2026-06-25T16:16:42.397Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-57452"
},
{
"affected": {
"vim:vim": [
"< 9.2.0671"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39448",
"id": "EUVD-2026-39448",
"imported": "2026-12-02T14:11:20.001Z",
"modified": "2026-06-25T15:47:18Z",
"published": "2026-06-25T15:27:50Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-39448"
}
]
}