JLSEC-2026-1883: Medium severity julia/vim_jll vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.2.0671
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of Vim builds with the +sodium feature are exposed when they open encrypted files using the VimCrypt~04! or VimCrypt~05! method. The issue affects versions prior to 9.2.0671.
What does an attacker need to do to trigger the crash?
An attacker needs to provide a malformed encrypted file using VimCrypt~04! or VimCrypt~05! whose body is shorter than one libsodium secretstream header, and a user must open that file in Vim. Exploitation is local and requires user interaction.
What is the impact?
Opening the crafted file can cause Vim to read far beyond the end of its input buffer during decryption and crash. The provided severity vector indicates availability impact only, with no confidentiality or integrity impact stated.
What should be done if patching is not immediately possible?
Avoid opening untrusted files encrypted with the VimCrypt~04! or VimCrypt~05! methods, particularly on Vim builds compiled with +sodium. Upgrade to Vim 9.2.0671 when available.