CVE-2026-32249: NFA regex engine NULL pointer dereference affects Vim < 9.2.0137
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
vimto a version that resolves this vulnerability.Fixed in 9.2.0137
Event History
Frequently Asked Questions
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.
How do I fix CVE-2026-32249?
To fix CVE-2026-32249, update Vim to version 9.2.0137 or later.
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.
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.
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.