CVE-2026-32249: NFA regex engine NULL pointer dereference affects Vim < 9.2.0137

Published Mar 12, 2026
·
Updated

NFA regex engine NULL pointer dereference affects Vim < 9.2.0137

Other sources

Vim is an open source, command line text editor. From 9.1.0011 to before 9.2.0137, Vim's NFA regex compiler, when encountering a collection containing a combining character as the endpoint of a character range (e.g. [0-0\u05bb]), incorrectly emits the composing bytes of that character as separate NFA states. This corrupts the NFA postfix stack, resulting in NFASTARTCOLL having a NULL out1 pointer. When nfamaxwidth() subsequently traverses the compiled NFA to estimate match width for the look-behind assertion, it dereferences state->out1->out without a NULL check, causing a segmentation fault. This vulnerability is fixed in 9.2.0137.

NVD

Affected Software

4 affected componentsFixes available
vim Vim<9.2.0137
Microsoft cbl2 vim 9.2.0088-1
Microsoft azl3 vim 9.2.0088-1
vim Vim>=9.1.0011<9.2.0137

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade vim to a version that resolves this vulnerability.

    Fixed in 9.2.0137

Event History

Mar 12, 2026
CVE Published
via MITRE·07:17 PM
Data Sourced
via MITRE·07:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 15, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
Affected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-32249?

CVE-2026-32249 has a medium severity rating due to the potential for NULL pointer dereference leading to application crashes.

2

How do I fix CVE-2026-32249?

To fix CVE-2026-32249, update Vim to version 9.2.0137 or later.

3

Which versions of Vim are affected by CVE-2026-32249?

Vim versions from 9.1.0011 to before 9.2.0137 are affected by CVE-2026-32249.

4

What type of vulnerability is CVE-2026-32249?

CVE-2026-32249 is a NULL pointer dereference vulnerability found in the NFA regex engine of Vim.

5

Can CVE-2026-32249 be exploited remotely?

CVE-2026-32249 is not a remote exploit vulnerability but can affect the application when processing certain regex patterns.

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