All reports
Low

vim: Use After Free in do_cmdline() in ex_docmd.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-3099

Probability of exploitation in the next 30 days: 0.50%

FIRST EPSS · 2026-11-21

Description

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

A use-after-free vulnerability was found in vim's do_cmdline() function of the src/ex_docmd.c file. The issue triggers when an invalid line number on :for is ignored. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering use-after-free that causes an application to crash, possibly executing code and corrupting memory.