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

High 7.8 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
A user has to click or open something
Fix
Available

What is CVE-2022-2522?

CVE-2022-2522 is a high-severity memory corruption vulnerability in Vim Vim, published on 25 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

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

Weakness: CWE-122

Which versions are affected by CVE-2022-2522?

It affects 1 product.

Linux distribution packages (1)
vim openSUSE:TumbleweedAll versions9.0.0032-1.2

Products include Vim Vim.

How do I fix CVE-2022-2522?

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

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

All Vim Vim vulnerabilities

Sources

Also known as AZL-10321, DEBIAN-CVE-2022-2522, GHSA-3c2j-x8m7-hrhp, UBUNTU-CVE-2022-2522, openSUSE-SU-2024:12213-1.

Is CVE-2022-2522 in your software?

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

Check your SBOMs for free