CVE-2022-0413 Use After Free in vim/vim

High 8.4 Published Updated

A use-after-free vulnerability in Vim allows attackers to execute arbitrary code or cause a denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-0413?

CVE-2022-0413 is a high-severity use after free vulnerability in Debian Debian Linux, published on 30 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Weakness: CWE-416

Which versions are affected by CVE-2022-0413?

It affects 3 products.

Linux distribution packages (18)
vim-X11 Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-X11-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-common Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-common-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-debugsource Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-enhanced Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-enhanced-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim-minimal-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:8.2.2637-15.el9
vim Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-X11-debuginfo Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-common-debuginfo Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-debuginfo Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-debugsource Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-enhanced-debuginfo Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-filesystem Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-minimal Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9
vim-minimal-debuginfo Red Hat:enterprise_linux:9::baseosAll versions2:8.2.2637-15.el9

Products include Debian Debian Linux, Fedoraproject Fedora, Vim Vim.

How do I fix CVE-2022-0413?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-0413 being exploited?

There is no known exploitation of CVE-2022-0413 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-0413, AZL-8460, DEBIAN-CVE-2022-0413, GHSA-883r-99mm-wc9g, RHBA-2022:3945, UBUNTU-CVE-2022-0413.

Is CVE-2022-0413 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free