Use after free in append_command in vim/vim

Summary

CVECVE-2022-1616
StatePUBLISHED
Assigner@huntrdev
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-05-07 19:15:07 UTC
Updated2026-10-08 22:17:15 UTC
DescriptionUse after free in append_command in GitHub repository vim/vim prior to 8.2.4895. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

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

EPSS: 0.027120000 probability, percentile 0.857990000 (date 2026-10-20)

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.3HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H
3.0CNADECLARED7.3HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H
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
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
High

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

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
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 34 All All All
Operating System Fedoraproject Fedora 35 All All All
Operating System Fedoraproject Fedora 36 All All All
Application Vim Vim All All All All

Vendor Declared Affected Products

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

References

ReferenceSourceLinkTags
[SECURITY] [DLA 3182-1] vim security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
[SECURITY] Fedora 35 Update: vim-8.2.4927-1.fc35 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] Fedora 34 Update: vim-8.2.4927-1.fc34 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
lists.debian.org/debian-lts-announce/2025/03/msg00023.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
patch 8.2.4895: buffer overflow with invalid command with composing c… · vim/vim@d889344 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Patch, Third Party Advisory
[SECURITY] [DLA 3011-1] vim security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
Vim, gVim: Multiple Vulnerabilities (GLSA 202305-16) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org
Full Disclosure: APPLE-SA-2022-10-24-2 macOS Ventura 13 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
[SECURITY] Fedora 36 Update: vim-8.2.4927-1.fc36 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Vim, gVim: Multiple Vulnerabilities (GLSA 202208-32) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
Use after free in append_command vulnerability found in vim af854a3a-2127-422b-91ae-364da2661108 huntr.dev Exploit, Patch, 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, Release Notes, Third Party Advisory
About the security content of macOS Ventura 13 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Release Notes, Third Party Advisory
[SECURITY] Fedora 34 Update: vim-8.2.4927-1.fc34 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
[SECURITY] Fedora 36 Update: vim-8.2.4927-1.fc36 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
[SECURITY] Fedora 35 Update: vim-8.2.4927-1.fc35 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179292 Debian Security Update for vim (DLA 3011-1)
  • 181198 Debian Security Update for vim (DLA 3182-1)
  • 184222 Debian Security Update for vim (CVE-2022-1616)
  • 198939 Ubuntu Security Notification for Vim Vulnerabilities (USN-5613-1)
  • 282670 Fedora Security Update for vim (FEDORA-2022-f0db3943d9)
  • 282699 Fedora Security Update for vim (FEDORA-2022-8df66cdbef)
  • 282700 Fedora Security Update for vim (FEDORA-2022-e92c3ce170)
  • 296082 Oracle Solaris 11.4 Support Repository Update (SRU) 48.126.1 Missing (CPUJUL2022)
  • 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
  • 671882 EulerOS Security Update for vim (EulerOS-SA-2022-1953)
  • 671907 EulerOS Security Update for vim (EulerOS-SA-2022-1984)
  • 671935 EulerOS Security Update for vim (EulerOS-SA-2022-2014)
  • 671979 EulerOS Security Update for vim (EulerOS-SA-2022-2173)
  • 671980 EulerOS Security Update for vim (EulerOS-SA-2022-2148)
  • 672048 EulerOS Security Update for vim (EulerOS-SA-2022-2282)
  • 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)
  • 752246 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:2102-1)
  • 753066 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:4619-1)
  • 901580 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9740)
  • 901727 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9737)
  • 902071 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9737-1)
  • 902203 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9740-1)

© 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