Vulnerability · Published Feb 6, 2026 · Assigned by GitHub_M

CVE-2026-25749Heap Overflow in Vim

Medium 6.6

In plain English

A medium-severity heap buffer overflow in vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.6Medium
Exploit odds (30 days)0.3%top 81.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8vim-X112:8.0.1763-22.el8_10ALSA-2026:4442
AlmaLinux:9vim-X112:8.2.2637-23.el9_7.1ALSA-2026:5602
AlmaLinux:8vim-common2:8.0.1763-22.el8_10ALSA-2026:4442
AlmaLinux:9vim-common2:8.2.2637-23.el9_7.1ALSA-2026:5602
AlmaLinux:10vim-data2:9.1.083-6.el10_1.1ALSA-2026:4715
AlmaLinux:8vim-enhanced2:8.0.1763-22.el8_10ALSA-2026:4442
AlmaLinux:9vim-enhanced2:8.2.2637-23.el9_7.1ALSA-2026:5602
AlmaLinux:10vim-filesystem2:9.1.083-6.el10_1.1ALSA-2026:4715
AlmaLinux:8vim-filesystem2:8.0.1763-22.el8_10ALSA-2026:4442
AlmaLinux:9vim-filesystem2:8.2.2637-23.el9_7.1ALSA-2026:5602
AlmaLinux:8vim-minimal2:8.0.1763-22.el8_10ALSA-2026:4442
AlmaLinux:9vim-minimal2:8.2.2637-23.el9_7.1ALSA-2026:5602
Alpine:v3.23vim9.1.2132-r0ALPINE-CVE-2026-25749
Alpine:v3.24vim9.1.2132-r0ALPINE-CVE-2026-25749
Debian:12vimno fix listedDEBIAN-CVE-2026-25749
Debian:13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-25749
Debian:14vim2:9.1.2141-1DEBIAN-CVE-2026-25749
Rocky Linux:10vim2:9.1.083-6.el10_1.1RLSA-2026:4715
Rocky Linux:8vim2:8.0.1763-22.el8_10RLSA-2026:4442
Rocky Linux:9vim2:8.2.2637-23.el9_7.1RLSA-2026:5602
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.26UBUNTU-CVE-2026-25749
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.10UBUNTU-CVE-2026-25749
Ubuntu:25.10vim2:9.1.0967-1ubuntu6.1UBUNTU-CVE-2026-25749

Affected products (as reported)

VendorProductVersions
vim vim < 9.1.2132

Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H

References