Vim up to 9.1.2131 src/tag.c get_tagfname helpfile heap-based overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical was found in Vim up to 9.1.2131. This vulnerability affects the function get_tagfname of the file src/tag.c. The manipulation of the argument helpfile results in heap-based overflow.
This vulnerability is known as CVE-2026-25749. It is possible to launch the attack remotely. No exploit is available.
Upgrading the affected component is advised.
Details
A vulnerability, which was classified as critical, was found in Vim up to 9.1.2131. Affected is the function get_tagfname of the file src/tag.c. The manipulation of the argument helpfile with an unknown input leads to a heap-based overflow vulnerability. CWE is classifying the issue as 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(). This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is traded as CVE-2026-25749 since 02/05/2026. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 298305 (Linux Distros Unpatched Vulnerability : CVE-2026-25749), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 9.1.2132 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 0714b15940b245108e6e9d7aa2260dd849a26fa9 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (298305) and CERT Bund (WID-SEC-2026-0335). Once again VulDB remains the best source for vulnerability data.
Affected
- Red Hat Enterprise Linux
- Fedora Linux
- Ubuntu Linux
- Oracle Linux
- RESF Rocky Linux
- Open Source vim
- Red Hat OpenShift
Product
Type
Name
Version
License
Website
- Product: https://github.com/vim/vim/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.3
VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 6.6
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Heap-based overflowCWE: CWE-122 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 298305
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-25749
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Vim 9.1.2132
Patch: 0714b15940b245108e6e9d7aa2260dd849a26fa9
Timeline
02/05/2026 CVE reserved02/07/2026 Advisory disclosed
02/07/2026 VulDB entry created
04/16/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-5w93-4g67-mm43
Status: Confirmed
CVE: CVE-2026-25749 (🔒)
GCVE (CVE): GCVE-0-2026-25749
GCVE (VulDB): GCVE-100-344820
CERT Bund: WID-SEC-2026-0335 - vim: Schwachstelle ermöglicht Codeausführung
Entry
Created: 02/07/2026 08:36Updated: 04/16/2026 23:31
Changes: 02/07/2026 08:36 (70), 02/07/2026 10:41 (7), 02/08/2026 00:36 (2), 02/20/2026 19:34 (1), 03/13/2026 15:28 (1), 03/27/2026 13:49 (1), 04/16/2026 23:31 (1)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.