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

- Severity: Medium 4.0 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-03T00:00:00.000Z
- Modified: 2026-06-17T04:59:37.767Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 9.0.0742
- vim vim: before 9.0.0742

## Every score

- @huntrdev: CVSS:3.0 4.0 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://huntr.dev/bounties/6e6e05c2-2cf7-4aa5-a817-a62007bf92cb> (exploit, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/3558afe9e9e904cabb8475392d859f2d2fc21041> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-16> (vendor-advisory)

## Sources

- CVE List: [CVE-2022-3491](https://www.cve.org/CVERecord?id=CVE-2022-3491), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-3491](https://nvd.nist.gov/vuln/detail/CVE-2022-3491), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3491 · Whole record: https://cve.day/CVE-2022-3491.json · Rebuilt by cve.day 2026-11-25T22:58:17.196Z
