{"id":"CVE-2022-2042","title":"Use After Free in GitHub repository vim/vim prior to 8.2.","summary":"Use After Free in GitHub repository vim/vim prior to 8.2.","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-416"],"vendor":"vim","product":"vim","affected":["vim < 8.2.5072","macos < 11.7","macos >= 12.0, < 12.6"],"patched":["vim 8.2.5072","macos 12.6"],"published":"2022-06-10","updated":"2026-10-08","sourceUpdated":"2026-10-08T22:17:21.010","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-2042","references":[{"url":"http://seclists.org/fulldisclosure/2022/Oct/28","label":"security@huntr.dev"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/41","label":"security@huntr.dev"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/43","label":"security@huntr.dev"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/45","label":"security@huntr.dev"},{"url":"https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835","label":"security@huntr.dev"},{"url":"https://huntr.dev/bounties/8628b4cd-4055-4059-aed4-64f7fdc10eba","label":"security@huntr.dev"},{"url":"https://security.gentoo.org/glsa/202208-32","label":"security@huntr.dev"},{"url":"https://security.gentoo.org/glsa/202305-16","label":"security@huntr.dev"},{"url":"https://support.apple.com/kb/HT213443","label":"security@huntr.dev"},{"url":"https://support.apple.com/kb/HT213444","label":"security@huntr.dev"},{"url":"https://support.apple.com/kb/HT213488","label":"security@huntr.dev"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/28","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/41","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/43","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Oct/45","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://huntr.dev/bounties/8628b4cd-4055-4059-aed4-64f7fdc10eba","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202208-32","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202305-16","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213443","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213444","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213488","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-2042.json"},{"url":"https://access.redhat.com/security/cve/CVE-2022-2042"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2097768"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-2042"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2042"}],"tags":["nvd","csaf","vex","red-hat"],"epss":0.01481,"epssPercentile":0.73164,"ingestedAt":"2026-10-08T23:16:47.344Z","slug":"CVE-2022-2042","body":"## Overview\n\nUse After Free in GitHub repository vim/vim prior to 8.2.\n\n## Affected\n\n- `vim < 8.2.5072`\n- `macos < 11.7`\n- `macos >= 12.0, < 12.6`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `vim 8.2.5072`\n- `macos 12.6`\n\n## Vendor advisories\n\n- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 9 · updated 2026-10-09 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-2042.json)","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}