CVE-2022-1621 Heap buffer overflow in vim_strncpy find_word in vim/vim

High 7.3 Published Updated

A heap buffer overflow in Vim allows attackers to crash the application or potentially execute arbitrary code 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-1621?

CVE-2022-1621 is a high-severity memory corruption vulnerability in Apple Macos, published on 9 May 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

Heap buffer overflow in vim_strncpy find_word in GitHub repository vim/vim prior to 8.2.4919. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2022-1621?

It affects 4 products.

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

How do I fix CVE-2022-1621?

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

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

All Apple Macos vulnerabilities

Sources

Also known as ALPINE-CVE-2022-1621, AZL-9705, DEBIAN-CVE-2022-1621, GHSA-xf6c-p6v2-q436, UBUNTU-CVE-2022-1621.

Is CVE-2022-1621 in your software?

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

Check your SBOMs for free