Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence

Vim fixes spell file parser flaws that can crash editors via malicious `.spl` files

Updated 29d agoFirst seen May 7, 20265 sources

Vim disclosed and patched multiple medium-severity memory-safety vulnerabilities in its spell file parser that can be triggered by a crafted .spl spell file placed on the runtimepath. The first issue, tracked as CVE-2026-45130, affects Vim versions earlier than 9.2.0450 and stems from an integer overflow in read_compound() in src/spellfile.c when UTF-8 spell data is loaded. A malicious SN_COMPOUND length can cause an undersized heap allocation followed by out-of-bounds writes, leading primarily to a crash when a user enables spell checking or opens a file whose modeline sets spelllang and spell; Vim noted denial of service as the practical impact, though the advisory said code execution might be possible in some conditions. Daniel Cervera of Microsoft Security Engineering reported the flaw, and Vim fixed it by adding stricter bounds checks and safer allocation handling in patch 9.2.0450.

Vim later disclosed three additional spell parser bugs affecting versions earlier than 9.2.0513: a heap out-of-bounds read caused by uninitialized shared-node targets, a one-byte heap out-of-bounds read in word-counting logic, and a stack overflow from uncontrolled recursion in read_tree_node(). As with the earlier bug, exploitation requires a malicious spell file on the runtimepath and user-triggered spell loading, including via modelines. Vim rated the newer issues Medium severity and said the likely outcome is editor crashes and limited unintended reads of adjacent or uninitialized heap data rather than reliable code execution, underscoring ongoing risk in the application's spell file parsing path.

Share:
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the most recent confirmed update back to the earliest known activity.

4 EVENTS
May 22, 20261mo ago

Vim fixes three additional spell parser memory-safety flaws in patch 9.2.0513

Vim disclosed and fixed three related memory-safety issues in its spell file parser affecting versions earlier than 9.2.0513: a heap out-of-bounds read from uninitialized shared-node targets, a one-byte heap out-of-bounds read in word counting logic, and a stack overflow from uncontrolled recursion in read_tree_node(). Vim rated the issues Medium severity and said a crafted .spl file could trigger crashes or limited unintended data exposure.

May 7, 20262mo ago

CVE-2026-45130 assigned to Vim spell file heap overflow

The previously disclosed Vim spell file loading vulnerability was assigned CVE-2026-45130 in the GitHub Security Advisory. The advisory tied the CVE to the heap overflow in read_compound() affecting Vim versions before 9.2.0450.

Vim discloses spell file heap overflow affecting versions before 9.2.0450

Vim publicly disclosed a medium-severity heap buffer overflow affecting versions earlier than 9.2.0450 when loading crafted UTF-8 spell files from the runtimepath. The issue, reported by Daniel Cervera of Microsoft Security Engineering, could crash Vim and was described primarily as a denial-of-service vulnerability.

Vim fixes heap buffer overflow in spell file parser in patch 9.2.0450

Vim released patch v9.2.0450 to fix a heap-based buffer overflow in read_compound() within src/spellfile.c. The patch added bounds checks for oversized compound sections, switched allocation size calculations to safer size_t handling, and included a regression test.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

3 LINKEDOpen in app
Affected products
1 linked
Vim
Organizations
1 linked
Microsoft Corporation
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Vim fixes spell file parser flaws that can crash editors via malicious `.spl` files | Mallory