CVE-2026-73072: Vim: Heap Buffer Overflow when Loading a Spell File
Vim is an open source, command line text editor. Prior to 9.2.0846, setsofo() in src/spellfile.c reuses slsalfirst[] without resetting values left by setsalfirst(), so a crafted spell file containing an SNSAL section before an SNSOFO section causes under-counted mapping lists and attacker-influenced writes beyond a heap allocation. This issue is fixed in version 9.2.0846.
Other sources
Vim: Heap Buffer Overflow when Loading a Spell File
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.2.0957-1 - Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.1.1230-2+deb13u1 - Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.2.0858-1 - Upgrade
Upgrade
alpine/vimto a version that resolves this vulnerability.Fixed in 9.2.0854-r0 - Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.1.1230-2+deb13u1Fixed in 2:9.2.0858-1 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:7.4.052-1ubuntu3.1+esm32 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:7.4.1689-3ubuntu1.5+esm38 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:8.0.1453-1ubuntu1.13+esm23 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:8.1.2269-1ubuntu5.32+esm12 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:8.2.3995-1ubuntu2.35 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:9.1.0016-1ubuntu7.19 - Upgrade
Upgrade
ubuntu/vimto a version that resolves this vulnerability.Fixed in 2:9.1.2141-1ubuntu4.8 - Upgrade
Upgrade
vimto a version that resolves this vulnerability.Fixed in 9.2.0846
Event History
Frequently Asked Questions
What is the severity of CVE-2026-73072?
CVE-2026-73072 has a risk rating of 55, indicating a moderate security vulnerability.
How do I fix CVE-2026-73072?
To resolve CVE-2026-73072, update Vim to version 9.2.0846 or later.
What type of vulnerability is CVE-2026-73072?
CVE-2026-73072 is classified as a heap buffer overflow vulnerability.
What should I be aware of when using Vim prior to version 9.2.0846 with respect to CVE-2026-73072?
Using Vim versions prior to 9.2.0846 exposes users to potential exploits via crafted spell files.
Who is affected by CVE-2026-73072?
Users of Vim versions prior to 9.2.0846 are affected by the CVE-2026-73072 vulnerability.