CVE-2026-25749
Unknown Unknown - Not Provided
Heap Buffer Overflow in Vim Tag File Resolution (Pre

Publication date: 2026-02-06

Last updated on: 2026-02-20

Assigner: GitHub, Inc.

Description
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 get_tagfname() 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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-06
Last Modified
2026-02-20
Generated
2026-05-07
AI Q&A
2026-02-07
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
vim vim to 9.1.2132 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a heap buffer overflow in the Vim text editor, specifically in the tag file resolution logic when processing the 'helpfile' option.

The issue occurs in the get_tagfname() function in the source code file src/tag.c, where Vim copies the user-controlled 'helpfile' option value into a fixed-size heap buffer without checking if the input fits, using an unsafe STRCPY() operation.

Because the buffer size is fixed (MAXPATHL + 1 bytes, typically 4097 bytes), if the input is larger, it can overflow the buffer, leading to potential memory corruption.

This vulnerability was fixed in Vim version 9.1.2132.


How can this vulnerability impact me? :

The vulnerability can lead to a heap buffer overflow, which may allow an attacker to cause a denial of service or potentially execute arbitrary code with the privileges of the user running Vim.

According to the CVSS v3.1 score, the attack requires local access with low privileges and user interaction, but it can result in high impact on integrity and availability.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you should upgrade Vim to version 9.1.2132 or later, where the heap buffer overflow issue in the get_tagfname() function has been patched.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart