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

Medium 6.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
Not needed
Fix
Available

What is CVE-2022-0158?

CVE-2022-0158 is a medium-severity memory corruption vulnerability in Apple Macos, published on 10 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

vim is vulnerable to Heap-based Buffer Overflow

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2022-0158?

It affects 3 products.

Products include Apple Macos, Fedoraproject Fedora, Vim Vim.

How do I fix CVE-2022-0158?

Apply the vendor's patch.

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

Is CVE-2022-0158 being exploited?

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

All Apple Macos vulnerabilities

Sources

Also known as ALPINE-CVE-2022-0158, AZL-7163, DEBIAN-CVE-2022-0158, GHSA-72hg-72h4-39fg, UBUNTU-CVE-2022-0158.

Is CVE-2022-0158 in your software?

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

Check your SBOMs for free