# CVE-2022-2304: Stack-based Buffer Overflow in vim/vim

- Severity: High 7.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.49%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-05T00:00:00.000Z
- Modified: 2026-10-08T22:17:21.373Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: @huntrdev

## Description

Stack-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 9.0
- vim vim: before 9.0.0035
- fedoraproject fedora: 35; 36
- debian debian_linux: 10.0

## Every score

- @huntrdev: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://huntr.dev/bounties/eb7402f3-025a-402f-97a7-c38700d9548a> (exploit, third-party-advisory)
- <https://github.com/vim/vim/commit/54e5fed6d27b747ff152cdb6edfb72ff60e70939> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UXPO5EHDV6J4B27E65DOQGZFELUFPRSK/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/43Y3VJPOTTY3NTREDIFUPITM2POG4ZLP/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-16> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>

## Sources

- CVE List: [CVE-2022-2304](https://www.cve.org/CVERecord?id=CVE-2022-2304), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2022-2304](https://nvd.nist.gov/vuln/detail/CVE-2022-2304), Public domain, modified 2026-10-08

---

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