CVE-2026-32249

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 NFA_START_COLL having a NULL out1 pointer. When nfa_max_width() 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

History

18 Mar 2026, 11:50

Type Values Removed Values Added
Summary
  • (es) Vim es un editor de texto de código abierto de línea de comandos. Desde la versión 9.1.0011 hasta antes de la 9.2.0137, el compilador de expresiones regulares NFA de Vim, al encontrar una colección que contiene un carácter combinatorio como punto final de un rango de caracteres (por ejemplo, [0-0\u05bb]), emite incorrectamente los bytes de composición de ese carácter como estados NFA separados. Esto corrompe la pila postfija NFA, lo que resulta en que NFA_START_COLL tenga un puntero out1 NULL. Cuando nfa_max_width() posteriormente recorre el NFA compilado para estimar el ancho de coincidencia para la aserción de look-behind, desreferencia state->out1->out sin una verificación de NULL, causando un fallo de segmentación. Esta vulnerabilidad se corrige en la versión 9.2.0137.
CPE cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
References () https://github.com/vim/vim/commit/36d6e87542cf823d833e451e09a90ee429899cec - () https://github.com/vim/vim/commit/36d6e87542cf823d833e451e09a90ee429899cec - Patch
References () https://github.com/vim/vim/releases/tag/v9.2.0137 - () https://github.com/vim/vim/releases/tag/v9.2.0137 - Release Notes
References () https://github.com/vim/vim/security/advisories/GHSA-9phh-423r-778r - () https://github.com/vim/vim/security/advisories/GHSA-9phh-423r-778r - Vendor Advisory
First Time Vim vim
Vim

12 Mar 2026, 20:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-12 20:16

Updated : 2026-03-18 11:50


NVD link : CVE-2026-32249

Mitre link : CVE-2026-32249

CVE.ORG link : CVE-2026-32249


JSON object : View

Products Affected

vim

  • vim
CWE
CWE-476

NULL Pointer Dereference