Use After Free in vim/vim

Summary

CVECVE-2022-2042
StatePUBLISHED
Assigner@huntrdev
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-06-10 19:15:08 UTC
Updated2026-10-08 22:17:21 UTC
DescriptionUse 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.0[email protected]Secondary7.4HIGHCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L
3.0CNADECLARED7.4HIGHCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L
2.0[email protected]Primary6.8AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v3.0 Breakdown

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:M/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Apple Macos All All All All
Application Vim Vim All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Vim Vim/vim affected unspecified 8.2 custom Not specified

References

ReferenceSourceLinkTags
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

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)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report