CVE-2026-25749
Heap Overflow in Vim
Reported by github_m · Published February 6, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-X11 | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.ppc64le, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.s390x, 2:8.2.2637-23.el9_7.1.ppc64le, 2:8.2.2637-23.el9_7.1.aarch64, 2:8.0.1763-22.el8_10.x86_64, 2:8.0.1763-22.el8_10.aarch64 |
| vim-enhanced | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.x86_64, 2:9.1.083-6.el10_1.1.s390x, 2:9.1.083-6.el10_1.1.ppc64le, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.x86_64, 2:8.2.2637-23.el9_7.1.ppc64le |
| vim-common-debuginfo | errata.rockylinux.org | 2:8.2.2637-23.el9_7.1.x86_64, 2:8.2.2637-23.el9_7.1.ppc64le, 2:8.2.2637-23.el9_7.1.aarch64, 2:8.0.1763-22.el8_10.x86_64, 2:8.0.1763-22.el8_10.aarch64 |
| vim-minimal | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.x86_64, 2:9.1.083-6.el10_1.1.s390x, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.x86_64, 2:8.2.2637-23.el9_7.1.s390x, 2:8.2.2637-23.el9_7.1.aarch64, 2:8.0.1763-22.el8_10.x86_64, 2:8.0.1763-22.el8_10.aarch64 |
| vim-default-editor | Amazon Linux | 2:9.2.240-1.amzn2023.0.2 |
| vim-enhanced-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.s390x, 2:9.1.083-6.el10_1.1.ppc64le, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.x86_64, 2:8.2.2637-23.el9_7.1.aarch64, 2:8.0.1763-22.el8_10.x86_64, 2:8.0.1763-22.el8_10.aarch64 |
| vim-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.x86_64, 2:9.1.083-6.el10_1.1.s390x, 2:9.1.083-6.el10_1.1.ppc64le, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.s390x, 2:8.2.2637-23.el9_7.1.ppc64le, 2:8.2.2637-23.el9_7.1.aarch64, 2:8.0.1763-22.el8_10.x86_64 |
| vim-filesystem | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.noarch, 2:8.2.2637-23.el9_7.1.noarch, 2:8.0.1763-22.el8_10.noarch |
| vim-debugsource | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.s390x, 2:9.1.083-6.el10_1.1.ppc64le, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.x86_64, 2:8.2.2637-23.el9_7.1.s390x, 2:8.2.2637-23.el9_7.1.ppc64le, 2:8.2.2637-23.el9_7.1.aarch64, 2:8.0.1763-22.el8_10.x86_64, 2:8.0.1763-22.el8_10.aarch64 |
| vim-X11-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.ppc64le, 2:9.1.083-6.el10_1.1.aarch64, 2:8.2.2637-23.el9_7.1.x86_64, 2:8.2.2637-23.el9_7.1.s390x, 2:8.0.1763-22.el8_10.aarch64 |
| vim-data | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.noarch |
| vim | errata.rockylinux.org | 2:9.1.083-6.el10_1.1.src, 2:8.2.2637-23.el9_7.1.src, 2:8.0.1763-22.el8_10.src |
10 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.1.2132 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2023 | vim-filesystem | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2023 | xxd | 0 |
| alpine | vim | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-data | 0 |
| vim | vim | 0 |
| amazon:2023 | vim-enhanced | 0 |
Timeline
- Feb 5, 2026 CVE Published
- Feb 7, 2026 EPSS Score (30 in total, the first dated here)
- Feb 12, 2026 Security Advisory (27 in total, the first dated here)
- Mar 20, 2026 Distribution Patch (29 in total, the first dated here)
- Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-25749
vulnetix vdb fixes CVE-2026-25749
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-25749/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vim/vim/security/advisories/GHSA-5w93-4g67-mm43 x_refsource_CONFIRM
- https://github.com/vim/vim/commit/0714b15940b245108e6e9d7aa2260dd849a26fa9 x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.1.2132 x_refsource_MISC