JLSEC-2026-1849: Buffer Overflow
Vim is an open source, command line text editor. Prior to version 9.1.2132, a heap buffer overflow vulnerability exists in Vim's tag file resolution logic when processing the 'helpfile' option. The vulnerability is located in the gettagfname() function in src/tag.c. When processing help file tags, Vim copies the user-controlled 'helpfile' option value into a fixed-size heap buffer of MAXPATHL + 1 bytes (typically 4097 bytes) using an unsafe STRCPY() operation without any bounds checking. This issue has been patched in version 9.1.2132.
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.1.2132
Event History
Frequently Asked Questions
What must an attacker be able to do to trigger the overflow?
They need to cause Vim to process a help-file tag while the user-controlled 'helpfile' option contains a value longer than the fixed MAXPATHL + 1 heap buffer. The issue is locally exploitable and requires low privileges and user interaction.
Which versions are affected and what version fixes the issue?
Versions before Vim 9.1.2132 are affected. The issue is patched in Vim 9.1.2132.
What is the impact if exploitation succeeds?
The vulnerability is a heap buffer overflow in tag-file resolution. The provided severity vector indicates high integrity and availability impact, with no confidentiality impact.