CVE-2026-32249
NFA regex engine NULL pointer dereference affects Vim < 9.2.0137
Reported by github_m · Published March 12, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-common | Amazon Linux | 2:9.2.240-1.amzn2023.0.2 |
| vim-minimal | Amazon Linux | 2:9.2.240-1.amzn2023.0.2 |
| vim-data | Amazon Linux | 2:9.2.240-1.amzn2023.0.2 |
| xxd | Amazon Linux | 2:9.2.240-1.amzn2023.0.2 |
| vim-filesystem | Amazon Linux | 2:9.2.240-1.amzn2023.0.2 |
| vim | Alpine | 9.2.0140-r0 |
| vim | vim | 9.2.0137 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | >= 9.1.0011, < 9.2.0137 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2023 | xxd | 0 |
| amazon:2023 | vim-filesystem | 0 |
| alpine | vim | 0 |
| vim | vim | 9.1.0011 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2023 | vim-enhanced | 0 |
Timeline
- Mar 11, 2026 CVE Published
- Mar 13, 2026 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Coalition ESS Score (2 in total, the first dated here)
- Apr 13, 2026 CVE Updated
- Apr 14, 2026 Security Advisory (2 in total, the first dated here)
- Aug 11, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-32249
vulnetix vdb fixes CVE-2026-32249
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-32249/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vim/vim/security/advisories/GHSA-9phh-423r-778r x_refsource_CONFIRM
- https://github.com/vim/vim/commit/36d6e87542cf823d833e451e09a90ee429899cec x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0137 x_refsource_MISC