{"id":"CVE-2026-57452","state":"PUBLISHED","title":"Vim: Out-of-bounds Read with libsodium-encrypted Files","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!\nmethod (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.","publishedAt":"2026-06-25T15:27:50.147Z","updatedAt":"2026-06-25T15:47:18.346Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["vim vim"],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.2.0671","status":"affected"}]}],"references":["https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486","https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f","https://github.com/vim/vim/releases/tag/v9.2.0671"],"weaknesses":["CWE-125","CWE-191"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/57xxx/CVE-2026-57452.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-57452","state":"PUBLISHED","datePublished":"2026-06-25T15:27:50.147Z","dateUpdated":"2026-06-25T15:47:18.346Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-24T13:21:20.730Z"},"containers":{"cna":{"title":"Vim: Out-of-bounds Read with libsodium-encrypted Files","descriptions":[{"lang":"en","value":"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!\nmethod (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."}],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.2.0671","status":"affected"}]}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486","name":"https://github.com/vim/vim/security/advisories/GHSA-c4j9-wr9j-4486","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f","name":"https://github.com/vim/vim/commit/c8777cec25dcfae89c42e9aff51af61f71c5745f","tags":["x_refsource_MISC"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0671","name":"https://github.com/vim/vim/releases/tag/v9.2.0671","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-191","lang":"en","description":"CWE-191: Integer Underflow (Wrap or Wraparound)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-25T15:27:50.147Z"},"source":{"advisory":"GHSA-c4j9-wr9j-4486","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-25T15:47:10.061512Z","id":"CVE-2026-57452","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-25T15:47:18.346Z"}}]}}}