7.8
HIGH
CVE-2022-4141
Vim Heap Buffer Overflow Vulnerability
Description

Heap based buffer overflow in vim/vim 9.0.0946 and below by allowing an attacker to CTRL-W gf in the expression used in the RHS of the substitute command.

INFO

Published Date :

Nov. 25, 2022, 2:15 p.m.

Last Modified :

Nov. 7, 2023, 3:57 a.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2022-4141 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Vim vim

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-4141 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-4141 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference huntr.dev https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/ [No types assigned]
    Added Reference huntr.dev https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/ [No types assigned]
    Removed Reference huntr.dev https://lists.fedoraproject.org/archives/list/[email protected]/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/
    Removed Reference huntr.dev https://lists.fedoraproject.org/archives/list/[email protected]/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/
  • CVE Modified by [email protected]

    Jun. 12, 2023

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html [No Types Assigned]
  • CVE Modified by [email protected]

    May. 03, 2023

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/202305-16 [No Types Assigned]
  • Modified Analysis by [email protected]

    Jan. 10, 2023

    Action Type Old Value New Value
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/ Mailing List, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Dec. 08, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/ [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 07, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Nov. 30, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5 No Types Assigned https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5 Patch, Third Party Advisory
    Changed Reference Type https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f No Types Assigned https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f Exploit, Issue Tracking, Patch, Third Party Advisory
    Added CWE NIST CWE-787
    Added CPE Configuration OR *cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* versions up to (including) 9.0.0946
  • CVE Modified by [email protected]

    Nov. 29, 2022

    Action Type Old Value New Value
    Changed Description The target's backtrace indicates that libc has detected a heap error or that the target was executing a heap function when it stopped. This could be due to heap corruption, passing a bad pointer to a heap function such as free(), etc. Since heap errors might include buffer overflows, use-after-free situations, etc. they are generally considered exploitable. Heap based buffer overflow in vim/vim 9.0.0946 and below by allowing an attacker to CTRL-W gf in the expression used in the RHS of the substitute command.
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-4141 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-4141 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.13 }} 0.02%

score

0.48531

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability