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

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-12-03 · Modified: 2025-04-23
- Aliases: UBUNTU-CVE-2022-3491, DEBIAN-CVE-2022-3491
- Record: https://cvemate.com/vulnerability/CVE-2022-3491 · JSON: https://cvemate.com/vulnerability/CVE-2022-3491/json

## Description

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

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.542%, percentile 47.043%, 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

- debian vim (Debian): \< 2:9.0.0813-1
- ubuntu vim (Ubuntu): \< 2:8.2.3995-1ubuntu2.12
- vim vim: \< 9.0.0742
- vim vim/vim: ≥ unspecified, \< 9.0.0742

## References

- <https://huntr.dev/bounties/6e6e05c2-2cf7-4aa5-a817-a62007bf92cb>
- <https://github.com/vim/vim/commit/3558afe9e9e904cabb8475392d859f2d2fc21041>
- <https://security.gentoo.org/glsa/202305-16>
- <https://ubuntu.com/security/CVE-2022-3491>
- <https://ubuntu.com/security/notices/USN-6420-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-3491>
- <https://security-tracker.debian.org/tracker/CVE-2022-3491>

---

Data as of 2026-12-05T13:33:41.320Z. 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
