CVE-2022-1381 global heap buffer overflow in skip_range in vim/vim

High 7.8 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
Not needed
Fix
Available

What is CVE-2022-1381?

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

Official description

global heap buffer overflow in skip_range in GitHub repository vim/vim prior to 8.2.4763. 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-1381?

It affects 3 products.

Linux distribution packages (1)
vim openSUSE:TumbleweedAll versions8.2.4877-1.1

Products include Apple Macos, Fedoraproject Fedora, Vim Vim.

How do I fix CVE-2022-1381?

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

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

All Apple Macos vulnerabilities

Sources

Also known as ALPINE-CVE-2022-1381, AZL-9487, DEBIAN-CVE-2022-1381, GHSA-pq29-2m6m-938v, openSUSE-SU-2024:12051-1.

Is CVE-2022-1381 in your software?

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

Check your SBOMs for free