All reports
Low

vim: use-after-free in did_set_spelllang() in src/spell.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-4292

Probability of exploitation in the next 30 days: 0.69%

FIRST EPSS · 2026-11-19

Description

Use After Free in GitHub repository vim/vim prior to 9.0.0882.

A heap use-after-free flaw was found in Vim's did_set_spelllang() function of the spell.c file. This issue occurs because vim uses freed memory after SpellFileMissing autocmd uses bwipe. This could allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free issue that causes an application to crash, possibly executing code and corrupting memory.