# CVE-2022-1720: Buffer Over-read in function grab_file_name in vim/vim

- Severity: Medium 6.6 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/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): 2.18%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-16T00:00:00.000Z
- Modified: 2026-06-17T04:22:58.837Z
- Weaknesses: CWE-125, CWE-126
- Assigned by: @huntrdev

## Description

Buffer Over-read in function grab_file_name in GitHub repository vim/vim prior to 8.2.4956. This vulnerability is capable of crashing the software, memory modification, and possible remote execution.

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 8.2.4956
- vim vim: before 8.2.4956
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 35; 36
- apple macos: before 11.7; from 12.0 before 12.6

## Every score

- @huntrdev: CVSS:3.0 6.6 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/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/5ccfb386-7eb9-46e5-98e5-243ea4b358a8> (exploit, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/395bd1f6d3edc9f7edb5d1f2d7deaf5a9e3ab93c> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/06/msg00014.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GFD2A4YLBR7OIRHTL7CK6YNMEIQ264CN/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U743FMJGFQ35GBPCQ6OWMVZEJPDFVEWM/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)
- <https://support.apple.com/kb/HT213443> (third-party-advisory)
- <https://support.apple.com/kb/HT213444> (third-party-advisory)
- <https://support.apple.com/kb/HT213488> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/41> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/28> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/43> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/45> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-16> (third-party-advisory, vendor-advisory)

## Sources

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

---

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