cve.bz

CVE-2026-25749 Heap-based Buffer Overflow

6.6 mediumExploit referenceEPSS 0.3%Fix available

Medium (6.6). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-02-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-25749 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-25749?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-25749?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-25749 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
neovim:neovimthrough 0.11.6
vim:vimbefore 9.1.2132

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-25749
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-25749 DSA-6600-1
Debian14vim2:9.1.2141-1DEBIAN-CVE-2026-25749
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.26UBUNTU-CVE-2026-25749
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.10UBUNTU-CVE-2026-25749
Ubuntu25.10vim2:9.1.0967-1ubuntu6.1UBUNTU-CVE-2026-25749
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm23UBUNTU-CVE-2026-25749
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm29UBUNTU-CVE-2026-25749
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm14UBUNTU-CVE-2026-25749
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm2UBUNTU-CVE-2026-25749
Red Hatenterprise_linux:8::appstreamvim-X11, vim-enhanced2:8.0.1763-22.el8_10RHSA-2026:4442
Red Hatenterprise_linux:8::baseosvim, vim-minimal2:8.0.1763-22.el8_10RHSA-2026:4442
Red Hatenterprise_linux:9::appstreamvim-X11, vim-enhanced2:8.2.2637-23.el9_7.1RHSA-2026:5602
Red Hatenterprise_linux:9::baseosvim, vim-minimal2:8.2.2637-23.el9_7.1RHSA-2026:5602
Red Hatenterprise_linux:10.1vim, vim-X11, vim-minimal and 1 more2:9.1.083-6.el10_1.1RHSA-2026:4715
Red Hatenterprise_linux_eus:10.0vim, xxd, vim-X11 and 11 more2:9.1.083-5.el10_0.2RHSA-2026:6502
Red Hatrhel_aus:8.2::appstreamvim-X11, vim-common, vim-enhanced and 7 more2:8.0.1763-13.el8_2.1RHSA-2026:6730
Red Hatrhel_aus:8.2::baseosvim, vim-minimal, vim-debuginfo and 5 more2:8.0.1763-13.el8_2.1RHSA-2026:6730
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamvim-X11, vim-common, vim-enhanced and 7 more2:8.0.1763-15.el8_4.1RHSA-2026:6729
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseosvim, vim-minimal, vim-debuginfo and 5 more2:8.0.1763-15.el8_4.1RHSA-2026:6729
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamvim-X11, vim-common, vim-enhanced and 7 more2:8.0.1763-19.el8_6.5RHSA-2026:6731
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseosvim, vim-minimal, vim-debuginfo and 5 more2:8.0.1763-19.el8_6.5RHSA-2026:6731
11 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8vim-X11, vim-common, vim-minimal and 2 more2:8.0.1763-22.el8_10ALSA-2026:4442
AlmaLinux9vim-X11, vim-common, vim-minimal and 2 more2:8.2.2637-23.el9_7.1ALSA-2026:5602
AlmaLinux10vim-data, vim-filesystem2:9.1.083-6.el10_1.1ALSA-2026:4715
Rocky Linux8vim2:8.0.1763-22.el8_10RLSA-2026:4442
Rocky Linux9vim2:8.2.2637-23.el9_7.1RLSA-2026:5602
Rocky Linux10vim2:9.1.083-6.el10_1.1RLSA-2026:4715
Alpinev3.23, v3.24vim9.1.2132-r0ALPINE-CVE-2026-25749
Azure Linux2vim9.2.0088-1AZL-77411
Azure Linux3vim9.2.0088-1AZL-76764
Alpaquita23, 25vim9.1.2141-r0BELL-CVE-2026-25749
Alpaquitastreamvim9.1.2132-r0BELL-CVE-2026-25749

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This MODERATE impact vulnerability in Vim's tag file resolution logic allows a local attacker to achieve a out-of-bounds write. By providing a specially crafted `helpfile` option value a local user can trigger a heap buffer overflow, as consequence lead to memory corruption presenting a data integrity impact or leading the vim process to crash resulting in availability impact. Although being non-trivial and very complex, arbitrary code execution is not discarded as worst case scenario.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vim-2:9.1.083-6.el10_1.1Fixed 2026-03-17RHSA-2026:4715
Red Hat Enterprise Linux 10.0 Extended Update Supportvim-2:9.1.083-5.el10_0.2Fixed 2026-04-02RHSA-2026:6502
Red Hat Enterprise Linux 7 Extended Lifecycle Supportvim-2:7.4.629-8.el7_9.1Fixed 2026-04-06RHSA-2026:6617
Red Hat Enterprise Linux 8vim-2:8.0.1763-22.el8_10Fixed 2026-03-12RHSA-2026:4442
Red Hat Enterprise Linux 8.2 Advanced Update Supportvim-2:8.0.1763-13.el8_2.1Fixed 2026-04-07RHSA-2026:6730
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportvim-2:8.0.1763-15.el8_4.1Fixed 2026-04-07RHSA-2026:6729
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onvim-2:8.0.1763-15.el8_4.1Fixed 2026-04-07RHSA-2026:6729
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportvim-2:8.0.1763-19.el8_6.5Fixed 2026-04-07RHSA-2026:6731
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicevim-2:8.0.1763-19.el8_6.5Fixed 2026-04-07RHSA-2026:6731
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsvim-2:8.0.1763-19.el8_6.5Fixed 2026-04-07RHSA-2026:6731
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicevim-2:8.0.1763-20.el8_8.1Fixed 2026-04-07RHSA-2026:6736
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsvim-2:8.0.1763-20.el8_8.1Fixed 2026-04-07RHSA-2026:6736
Red Hat Enterprise Linux 9vim-2:8.2.2637-23.el9_7.1Fixed 2026-03-24RHSA-2026:5602
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsvim-2:8.2.2637-16.el9_0.4Fixed 2026-04-06RHSA-2026:6619
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_2.1Fixed 2026-04-06RHSA-2026:6620
Red Hat Enterprise Linux 9.4 Extended Update Supportvim-2:8.2.2637-20.el9_4.2Fixed 2026-04-02RHSA-2026:6540
Red Hat Enterprise Linux 9.6 Extended Update Supportvim-2:8.2.2637-22.el9_6.2Fixed 2026-04-02RHSA-2026:6539
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202604281506-0Fixed 2026-05-08RHSA-2026:12274
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202604080111-0Fixed 2026-04-16RHSA-2026:7239
Red Hat Enterprise Linux 6vimOut of support scope
16 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-25749.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON