# CVE-2022-1381: global heap buffer overflow in skip_range in vim/vim

- Severity: High 7.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:C/C:N/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): 3.12%, higher than 89% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-17T00:00:00.000Z
- Modified: 2026-06-17T04:22:19.900Z
- Weaknesses: CWE-122, CWE-787
- Assigned by: @huntrdev

## Description

global heap buffer overflow in skip_range in GitHub repository vim/vim prior to 8.2.4763. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 8.2.4763
- vim vim: before 8.2.4763
- fedoraproject fedora: 34; 35; 36
- apple macos: before 13.0

## Every score

- @huntrdev: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:C/C:N/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/55f9c0e8-c221-48b6-a00e-bdcaebaba4a4> (exploit, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/f50808ed135ab973296bca515ae4029b321afe47> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X6E457NYOIRWBJHKB7ON44UY5AVTG4HU/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KVPZVE2CIE2NGCHZDMEHPBWN3LK2UQAA/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)
- <https://support.apple.com/kb/HT213488> (release-notes, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/41> (mailing-list, release-notes, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/28> (mailing-list)
- <https://security.gentoo.org/glsa/202305-16> (vendor-advisory)

## Sources

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

---

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