# CVE-2022-2522: 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-07-25 · Modified: 2026-10-08
- Aliases: UBUNTU-CVE-2022-2522, DEBIAN-CVE-2022-2522, openSUSE-SU-2024:12213-1
- Record: https://cvemate.com/vulnerability/CVE-2022-2522 · JSON: https://cvemate.com/vulnerability/CVE-2022-2522/json

## Description

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

## Signals

- CVSS: 7.8 high (v3.0, CVE.org) CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.581%, percentile 49.182%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- debian vim (Debian): \< 2:9.0.0135-1
- ubuntu vim (Ubuntu): All versions (No fix recorded) \| \< 2:8.2.3995-1ubuntu2.11
- opensuse vim&distro=openSUSE Tumbleweed (openSUSE): \< 9.0.0032-1.2
- vim vim: \< 9.0.0061
- vim vim/vim: ≥ unspecified, \< 9.0.0061

## References

- <https://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22>
- <https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089>
- <https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889e>
- <https://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22/>
- <https://security.gentoo.org/glsa/202305-16>
- <https://ubuntu.com/security/CVE-2022-2522>
- <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016068>
- <https://ubuntu.com/security/notices/USN-6302-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-2522>
- <https://security-tracker.debian.org/tracker/CVE-2022-2522>
- <https://www.suse.com/security/cve/CVE-2022-2522>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2522>

---

Data as of 2026-12-05T03:51:19.234Z. 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
