CVE-2022-3491 Heap-based Buffer Overflow in vim/vim

Medium 4.0 Published Updated

A heap-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
Not needed
Fix
Available

What is CVE-2022-3491?

CVE-2022-3491 is a medium-severity memory corruption vulnerability in Vim Vim, published on 3 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0742.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2022-3491?

It affects 1 product.

Products include Vim Vim.

How do I fix CVE-2022-3491?

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-3491 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3491 exists.

All Vim Vim vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-3491, GHSA-7g7x-hhf5-323c, UBUNTU-CVE-2022-3491.

Is CVE-2022-3491 in your software?

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

Check your SBOMs for free