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

- Severity: Medium 5.7 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/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): 1.25%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-30T13:45:52.000Z
- Modified: 2026-06-17T04:20:32.863Z
- Weaknesses: CWE-122, CWE-787
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 8.2
- vim vim: before 8.2.4219

## Every score

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

## References

- <https://huntr.dev/bounties/81822bf7-aafe-4d37-b836-1255d46e572c> (exploit, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/44db8213d38c39877d2148eff6a72f4beccfb94e> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)

## Sources

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

---

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