# CVE-2022-2042: Use After Free in vim/vim

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

## Description

Use After Free 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.5072
- apple macos: before 11.7; from 12.0 before 12.6

## Every score

- @huntrdev: CVSS:3.0 7.4 High `CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/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/8628b4cd-4055-4059-aed4-64f7fdc10eba> (exploit, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835> (patch, third-party-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://security.gentoo.org/glsa/202305-16> (vendor-advisory)

## Sources

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

---

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