# CVE-2022-1620: NULL Pointer Dereference in function vim_regexec_string at regexp.c:2729 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): 1.61%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-08T00:00:00.000Z
- Modified: 2026-10-08T22:17:15.630Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: @huntrdev

## Description

NULL Pointer Dereference in function vim_regexec_string at regexp.c:2729 in GitHub repository vim/vim prior to 8.2.4901. NULL Pointer Dereference in function vim_regexec_string at regexp.c:2729 allows attackers to cause a denial of service (application crash) via a crafted input.

(As written by CVE List.)

## Affected

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

## 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.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://huntr.dev/bounties/7a4c59f3-fcc0-4496-995d-5ca6acd2da51> (exploit, third-party-advisory)
- <https://github.com/vim/vim/commit/8e4b76da1d7e987d43ca960dfbc372d1c617466f> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A6BY5P7ERZS7KXSBCGFCOXLMLGWUUJIH/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JUN33257RUM4RS2I4GZETKFSAXPETATG/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIP7KG7TVS5YF3QREAY2GOGUT3YUBZAI/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-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)
- <https://security.gentoo.org/glsa/202305-16> (vendor-advisory)

## Sources

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

---

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