JLSEC-2026-1834: Use After Free

Published Dec 2, 2026
·
Updated

The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list handling. When adding a new file to the argument list, this triggers Buf autocommands. If in such an autocommand the buffer that was just opened is closed (including the window where it is shown), this causes the window structure to be freed which contains a reference to the argument list that we are actually modifying. Once the autocommands are completed, the references to the window and argument list are no longer valid and as such cause an use-after-free. Impact is low since the user must either intentionally add some unusual autocommands that wipe a buffer during creation (either manually or by sourcing a malicious plugin), but it will crash Vim. The issue has been fixed as of Vim patch v9.1.0678.

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.0678

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

Who is realistically exposed to this issue?

The practical risk is limited to Vim instances running a version earlier than 9.1.0678 where Buf* autocommands can close a newly opened buffer, including its window, while a file is being added to the argument list. This may occur through intentionally configured unusual autocommands or a malicious sourced plugin.

2

What does an attacker need to exploit it?

An attacker would need a way to cause Vim to use an autocommand that wipes the newly created buffer during argument-list handling, such as through a malicious plugin that is sourced by the user. The vulnerability is local, requires low privileges, and has high attack complexity.

3

Are default Vim configurations affected?

The described crash requires unusual Buf* autocommands that close the buffer during its creation. The data does not indicate that a standard default configuration contains such autocommands.

4

What should be done if upgrading is not immediately possible?

Review Buf* autocommands and sourced plugins, and avoid configurations that close or wipe a buffer and its window when a new file is added to the argument list. Upgrade Vim to patch v9.1.0678 or later when possible.

5

How can I determine whether an installation is vulnerable?

Vim versions prior to 9.1.0678 are affected. For those versions, inspect Buf* autocommands and plugins for behavior that closes or wipes a newly opened buffer during buffer creation.

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