Use After Free in vim/vim
Summary
| CVE | CVE-2022-2042 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-06-10 19:15:08 UTC |
| Updated | 2026-10-08 22:17:21 UTC |
| Description | Use After Free in GitHub repository vim/vim prior to 8.2. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-416 | CWE-416 CWE-416 Use After Free
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.0 | [email protected] | Secondary | 7.4 | HIGH | CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L |
| 3.0 | CNA | DECLARED | 7.4 | HIGH | CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L |
| 2.0 | [email protected] | Primary | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v3.0 Breakdown
Attack Vector
LocalAttack Complexity
HighPrivileges Required
LowUser Interaction
RequiredScope
ChangedConfidentiality
HighIntegrity
HighAvailability
LowCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
PartialIntegrity
PartialAvailability
PartialAV:N/AC:M/Au:N/C:P/I:P/A:P
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Full Disclosure: APPLE-SA-2022-10-27-7 Additional information for APPLE-SA-2022-09-12-4 macOS Monterey 12.6 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| About the security content of macOS Big Sur 11.7 - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Third Party Advisory |
| patch 8.2.5072: using uninitialized value and freed memory in spell c… · vim/vim@2813f38 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202305-16) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | |
| use after free in skipwhite vulnerability found in vim | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Patch, Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-10-24-2 macOS Ventura 13 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202208-32) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| About the security content of macOS Monterey 12.6 - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-10-27-9 Additional information for APPLE-SA-2022-09-12-3 macOS Big Sur 11.7 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| About the security content of macOS Ventura 13 - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 182860 Debian Security Update for vim (CVE-2022-2042)
- 200016 Ubuntu Security Notification for Vim Vulnerabilities (USN-6557-1)
- 354009 Amazon Linux Security Advisory for vim : ALAS2-2022-1829
- 354033 Amazon Linux Security Advisory for vim : ALAS-2022-1628
- 354356 Amazon Linux Security Advisory for vim : ALAS2022-2022-116
- 354497 Amazon Linux Security Advisory for vim : ALAS2022-2022-155
- 354585 Amazon Linux Security Advisory for vim : ALAS-2022-155
- 355135 Amazon Linux Security Advisory for vim : ALAS2023-2023-098
- 672048 EulerOS Security Update for vim (EulerOS-SA-2022-2282)
- 672105 EulerOS Security Update for vim (EulerOS-SA-2022-2307)
- 672124 EulerOS Security Update for vim (EulerOS-SA-2022-2336)
- 672152 EulerOS Security Update for vim (EulerOS-SA-2022-2436)
- 672157 EulerOS Security Update for vim (EulerOS-SA-2022-2423)
- 672223 EulerOS Security Update for vim (EulerOS-SA-2022-2639)
- 710607 Gentoo Linux Vim, gVim Multiple Vulnerabilities (GLSA 202208-32)
- 710718 Gentoo Linux Vim, gVim Multiple Vulnerabilities (GLSA 202305-16)