cve.bz

CVE-2026-55892 vim vim: Out-of-bounds Write

5.5 mediumEPSS 0.1%Fix available

Medium (5.5) in vim vim. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
Vim is an open source, command line text editor. Prior to 9.2.0662, the dump_prefixes() function in src/spell.c walks a spell-file prefix trie iteratively with a depth counter while dumping the prefixes that apply to a word. The counter is bounded only by the trie structure itself; it is never checked against the size of the fixed MAXWLEN-element stack arrays it indexes (prefix[], arridx[], curi[]). A crafted .spl file, loaded when the user dumps the word list, can drive the descent arbitrarily deep, so the function writes past the end of those arrays. This is a stack out-of-bounds write that corrupts the call frame and crashes the editor. This vulnerability is fixed in 9.2.0662.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd 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-06-26. 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-787 Out-of-bounds Write
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-55892 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-55892?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-55892?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-55892 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
vim:vimbefore 9.2.0662

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-55892
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-55892 DSA-6600-1
Debian14vim2:9.2.0782-1DEBIAN-CVE-2026-55892
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.33UBUNTU-CVE-2026-55892 USN-8500-1
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.17UBUNTU-CVE-2026-55892 USN-8500-1
Ubuntu25.10vim2:9.1.0967-1ubuntu6.8UBUNTU-CVE-2026-55892 USN-8500-1
Ubuntu26.04:LTSvim2:9.1.2141-1ubuntu4.6UBUNTU-CVE-2026-55892 USN-8500-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm30UBUNTU-CVE-2026-55892 USN-8500-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm36UBUNTU-CVE-2026-55892 USN-8500-1
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm21UBUNTU-CVE-2026-55892 USN-8500-1
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm9UBUNTU-CVE-2026-55892 USN-8500-1
Red Hatenterprise_linux:8::appstreamvim-X11, vim-common, vim-enhanced2:8.0.1763-31.el8_10.7RHSA-2026:66348
Red Hatenterprise_linux:8::baseosvim2:8.0.1763-31.el8_10.7RHSA-2026:66348
Red Hatenterprise_linux:9::appstreamvim-X11, vim-common, vim-enhanced2:8.2.2637-26.el9_8.21RHSA-2026:66366
Red Hatenterprise_linux:9::baseosvim2:8.2.2637-26.el9_8.21RHSA-2026:66366
Red Hatenterprise_linux:10.2vim, vim-X11, vim-common and 1 more2:9.1.083-9.el10_2.20RHSA-2026:66336
Red Hathummingbird:1vim, xxd, vim-X11 and 6 more2:9.2.780-1.hum1RHSA-2026:35387
AlmaLinux8vim-X11, vim-common, vim-minimal and 2 more2:8.0.1763-31.el8_10.7ALSA-2026:66348
AlmaLinux9vim-X11, vim-common, vim-minimal and 2 more2:8.2.2637-26.el9_8.21ALSA-2026:66366
AlmaLinux10vim-data, vim-filesystem2:9.1.083-9.el10_2.20ALSA-2026:66336
Rocky Linux8vim2:8.0.1763-31.el8_10.7RLSA-2026:66348
Rocky Linux9vim2:8.2.2637-26.el9_8.21RLSA-2026:66366
Rocky Linux10vim2:9.1.083-9.el10_2.20RLSA-2026:66336
Alpinev3.23vim9.2.0854-r0ALPINE-CVE-2026-55892
Alpinev3.24vim9.2.0663-r0ALPINE-CVE-2026-55892
Azure Linux3vim9.2.0735-1AZL-91113
Alpaquita23, 25vim9.2.0747-r0BELL-CVE-2026-55892
Alpaquitastreamvim9.2.0663-r0BELL-CVE-2026-55892

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

A flaw was found in Vim's spell file handling. The dump_prefixes() function in src/spell.c does not validate the depth of the prefix trie against the size of fixed-size stack arrays, allowing a crafted .spl file to cause a stack out-of-bounds write and crash. Red Hat ships Vim in all RHEL versions and OpenShift CoreOS. Exploitation requires a user to load a malicious spell file and run :spelldump or spelling completion.

Red Hat's mitigation

Do not load untrusted spell files (.spl) from unknown sources. Avoid using :spelldump with spell files of unknown provenance.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vim-2:9.1.083-9.el10_2.20Fixed 2026-09-10RHSA-2026:66336
Red Hat Enterprise Linux 8vim-2:8.0.1763-31.el8_10.7Fixed 2026-09-10RHSA-2026:66348
Red Hat Enterprise Linux 9vim-2:8.2.2637-26.el9_8.21Fixed 2026-09-10RHSA-2026:66366
Red Hat Hardened Imagesvim-main-9.2.780-1.hum1Fixed 2026-07-03RHSA-2026:35387
Red Hat Update Infrastructure 5rhui5/cds-kubernetes-rhel9:1789479916Fixed 2026-09-16RHSA-2026:67956
Red Hat Update Infrastructure 5rhui5/cds-rhel9:1789479900Fixed 2026-09-16RHSA-2026:67956
Red Hat Update Infrastructure 5rhui5/haproxy-rhel9:1789479891Fixed 2026-09-16RHSA-2026:67956
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1789482961Fixed 2026-09-16RHSA-2026:67956
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1790242004Fixed 2026-09-24RHSA-2026:71603
Red Hat Enterprise Linux 6vimFix deferred
Red Hat Enterprise Linux 7vimFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

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

References

Check your stackJSON