JLSEC-2026-1835: Buffer Overflow

Published Dec 2, 2026
·
Updated

Vim is an improved version of the unix vi text editor. When flushing the typeahead buffer, Vim moves the current position in the typeahead buffer but does not check whether there is enough space left in the buffer to handle the next characters. So this may lead to the tboff position within the typebuf variable to point outside of the valid buffer size, which can then later lead to a heap-buffer overflow in e.g. instypebuf(). Therefore, when flushing the typeahead buffer, check if there is enough space left before advancing the off position. If not, fall back to flush current typebuf contents. It's not quite clear yet, what can lead to this situation. It seems to happen when error messages occur (which will cause Vim to flush the typeahead buffer) in comnination with several long mappgins and so it may eventually move the off position out of a valid buffer size. Impact is low since it is not easily reproducible and requires to have several mappings active and run into some error condition. But when this happens, this will cause a crash. The issue has been fixed as of Vim patch v9.1.0697. Users are advised to upgrade. There are no known workarounds for this issue.

Affected Software

1 affected component
julia/vim_jll*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.1.0697

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 needed to trigger the issue?

The issue appears to require several long active mappings together with an error condition that causes Vim to flush its typeahead buffer. It is not easily reproducible, and the exact triggering sequence is not yet clear.

2

What is the practical impact if it is triggered?

The invalid typeahead-buffer offset can later cause a heap-buffer overflow, including in ins_typebuf(). The described observed impact is a Vim crash.

3

Which version contains the fix?

The issue is fixed in Vim patch v9.1.0697. Users are advised to upgrade to a version containing that patch.

4

Is there a workaround if upgrading is not immediately possible?

No known workaround is available. Reducing reliance on configurations with several long mappings may avoid the described trigger conditions, but this is not stated as a supported mitigation.

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