CVE-2026-45130: Vim: Heap Buffer Overflow in spell file loading

Published May 8, 2026
·
Updated

Last updated 21 May 2026

Other sources

Vim is an open source, command line text editor. Prior to version 9.2.0450, a heap buffer overflow exists in readcompound() in src/spellfile.c when loading a crafted spell file (.spl) with UTF-8 encoding active. An attacker-controlled length field in the spell file's compound section overflows a 32-bit signed integer multiplication, causing a small buffer to be allocated for a write loop that runs many iterations, overflowing the heap. Because the 'spelllang' option can be set from a modeline, a text file modeline can trigger spell file loading if a malicious .spl file has been planted on the runtimepath. This issue has been patched in version 9.2.0450.

MITRE

Vim: Heap Buffer Overflow in spell file loading

Microsoft

Affected Software

5 affected componentsFixes available
vim Vim<9.2.0450
Microsoft azl3 vim 9.2.0392-1
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2
2:9.2.0461-12:9.2.0524-1
vim Vim<9.2.0450
Neovim Neovim<=0.12.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:9.2.0461-1Fixed in 2:9.2.0524-1
  2. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.2.0450
  3. Configuration

    Disable modelines or otherwise prevent the 'spelllang' option from being set via modelines so a text file cannot trigger loading a malicious .spl file from the runtimepath.

    Vim spelllang (modeline-controlled) = Prevent modeline from setting spelllang (disable modelines or otherwise disable modeline support)
  4. Compensating control

    Ensure the runtimepath used by Vim does not include attacker-writable locations where a malicious .spl file could be planted for spell file loading.

Event History

May 8, 2026
CVE Published
via MITRE·10:42 PM
Data Sourced
via MITRE·10:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 10, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:01 AM
Affected Software
Updated
via Microsoft·08:01 AM
DescriptionSeverity
May 25, 2026
Data Sourced
via Ubuntu·10:06 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·10:08 PM
DescriptionAffected Software
Data Sourced
via Launchpad·10:08 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45130?

CVE-2026-45130 is classified as a critical vulnerability due to the potential for remote code execution via the heap buffer overflow.

2

How do I fix CVE-2026-45130?

To fix CVE-2026-45130, upgrade Vim to version 9.2.0450 or later.

3

What versions of Vim are affected by CVE-2026-45130?

All versions of Vim prior to 9.2.0450 are affected by CVE-2026-45130.

4

What is the impact of CVE-2026-45130?

The impact of CVE-2026-45130 includes the potential execution of arbitrary code if a user loads a malicious spell file.

5

Can CVE-2026-45130 be exploited remotely?

Yes, CVE-2026-45130 can be exploited remotely if an attacker can persuade a user to load a crafted spell file.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203