JLSEC-2026-1871: Buffer Overflow

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
julia/vim_jll*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.2.0450

Event History

Dec 2, 2026
Advisory Published
via OSV·02:32 PM
Data Sourced
via OSV·02:32 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What conditions are required to trigger the overflow?

Vim must load an attacker-crafted .spl spell file while UTF-8 encoding is active. The vulnerable compound section contains a length field that causes a signed 32-bit multiplication overflow, leading to an undersized heap allocation and subsequent overflow.

2

Can opening a text file trigger the vulnerable spell-file load?

Yes. A text file modeline can set the 'spelllang' option, which can cause Vim to load a spell file if a malicious .spl file has been planted on the runtimepath. This requires user interaction to open the text file.

3

Who is most exposed?

Users of Vim versions before 9.2.0450 are exposed when UTF-8 is active and an attacker can make a crafted spell file available on the runtimepath, potentially in combination with a file containing a modeline. The issue is locally exploitable and does not require attacker privileges.

4

What version contains the fix?

The issue is patched in Vim version 9.2.0450. Update affected Vim installations to that version or later.

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