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

Published Jun 25, 2026
·
Updated

Last updated 2 July 2026

Other sources

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.

NVD

Vim: Out-of-bounds Read with libsodium-encrypted Files

Microsoft

Affected Software

4 affected componentsFixes available
vim<9.2.0671
vim Vim<9.2.0671
Microsoft azl3 vim 9.2.0620-1<9.2.0735-1
9.2.0735-1
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2, <=2:9.2.0524-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.2.0735-1
  2. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.2.0671

Event History

Jun 25, 2026
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 27, 2026
Data Sourced
via Microsoft·08:17 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:17 AM
DescriptionSeverity
Jul 2, 2026
Data Sourced
via Launchpad·07:19 PM
Description
Data Sourced
via Debian·07:19 PM
DescriptionAffected Software
Jul 3, 2026
Data Sourced
via Ubuntu·07:19 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-57452?

The severity of CVE-2026-57452 is medium with a score of 5.5.

2

How do I fix CVE-2026-57452?

To fix CVE-2026-57452, update Vim to version 9.2.0671 or later.

3

What is the impact of CVE-2026-57452?

CVE-2026-57452 can lead to an out-of-bounds read when opening specific encrypted files, posing potential security risks.

4

Which versions of Vim are affected by CVE-2026-57452?

Vim versions prior to 9.2.0671 are affected by CVE-2026-57452.

5

What encrypted file methods are involved in CVE-2026-57452?

CVE-2026-57452 involves files encrypted with the VimCrypt~04! or VimCrypt~05! methods.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203