CVE-2026-25749: Heap Overflow in Vim
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
vimto a version that resolves this vulnerability.Fixed in 9.1.2132
Event History
Frequently Asked Questions
What is the severity of CVE-2026-25749?
CVE-2026-25749 is rated as a high severity vulnerability due to the potential for a heap buffer overflow.
How do I fix CVE-2026-25749?
To fix CVE-2026-25749, upgrade to Vim version 9.1.2132 or later.
What software is affected by CVE-2026-25749?
CVE-2026-25749 affects Vim versions prior to 9.1.2132.
What is the nature of the vulnerability in CVE-2026-25749?
CVE-2026-25749 is a heap overflow vulnerability that occurs in the tag file resolution logic.
Which function is impacted by CVE-2026-25749?
The vulnerability in CVE-2026-25749 is located in the get_tagfname() function in src/tag.c.