# CVE-2022-3520: Heap-based Buffer Overflow in vim/vim

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-12-02 · Modified: 2025-04-23
- Aliases: ALPINE-CVE-2022-3520, UBUNTU-CVE-2022-3520, DEBIAN-CVE-2022-3520
- Record: https://cvemate.com/vulnerability/CVE-2022-3520 · JSON: https://cvemate.com/vulnerability/CVE-2022-3520/json

## Description

```text
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0765.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.318%, percentile 71.802%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine vim (Alpine Linux): \< 8.2.4836-r1 \| \< 8.2.5000-r1
- debian vim (Debian): \< 2:9.0.0813-1
- ubuntu vim (Ubuntu): \< 2:8.1.2269-1ubuntu5.18 \| \< 2:8.2.3995-1ubuntu2.12
- vim vim: \< 9.0.0765
- vim vim/vim: ≥ unspecified, \< 9.0.0765

## References

- <https://huntr.dev/bounties/c1db3b70-f4fe-481f-8a24-0b1449c94246>
- <https://github.com/vim/vim/commit/36343ae0fb7247e060abfd35fb8e4337b33abb4b>
- <https://security.gentoo.org/glsa/202305-16>
- <https://security.netapp.com/advisory/ntap-20241115-0010/>
- <https://security.alpinelinux.org/vuln/CVE-2022-3520>
- <https://ubuntu.com/security/CVE-2022-3520>
- <https://ubuntu.com/security/notices/USN-6420-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-3520>
- <https://security-tracker.debian.org/tracker/CVE-2022-3520>

---

Data as of 2026-12-05T13:33:39.679Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
