CVE-2022-3520 Heap-based Buffer Overflow in vim/vim
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-3520?
CVE-2022-3520 is a high-severity memory corruption vulnerability in Vim Vim, published on 2 Dec 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.0765.
Which versions are affected by CVE-2022-3520?
It affects 1 product.
Products include Vim Vim.
How do I fix CVE-2022-3520?
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-3520 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3520 exists.
Other vulnerabilities in Vim Vim
Sources
Also known as ALPINE-CVE-2022-3520, CLSA-2025-1761576318, CLSA-2026-1777391151, CLSA-2026-1777455188, CLSA-2026-1779130193, CLSA-2026-1787679179 and 3 more.