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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125",
"CWE-191"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57452.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "9.2.0671"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "c8777cec25dcfae89c42e9aff51af61f71c5745f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v9.2.0671",
"range": [
{
"fixed": "c8777cec25dcfae89c42e9aff51af61f71c5745f"
}
],
"source": "REFERENCES_TAG"
},
{
"cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "9.2.0671"
}
],
"source": "CPE_RANGE"
}
]
}