CVE-2022-2304 Stack-based Buffer Overflow in vim/vim

High 7.8 Published Updated

A stack-based buffer overflow 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
A user has to click or open something
Fix
Available

What is CVE-2022-2304?

CVE-2022-2304 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 5 Jul 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Stack-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2022-2304?

It affects 3 products.

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

How do I fix CVE-2022-2304?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-2304 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-2304, AZL-10062, DEBIAN-CVE-2022-2304, GHSA-57xr-3hh3-xfw3, UBUNTU-CVE-2022-2304.

Is CVE-2022-2304 in your software?

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

Check your SBOMs for free