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"
}{
"cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "9.2.0671"
}
],
"source": [
"AFFECTED_FIELD",
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57452.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"34370405741336439284200644907402249416",
"25002377208603199521989660508330297924",
"9028523841608962512144183933354085423",
"140514500289933766152756479409679176035"
],
"threshold": 0.9
},
"id": "CVE-2026-57452-93242e66",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f",
"target": {
"file": "src/crypt.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"146200493773228420153804765641940418619",
"116448583821281683609554005720856068597",
"121557590071523025040176466596457952089",
"34602954269418572710355684230584733778"
],
"threshold": 0.9
},
"id": "CVE-2026-57452-dd8e75ec",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f",
"target": {
"file": "src/version.c"
}
}
]
"2026-08-12T16:41:32Z"