LiveActive security incident?Get immediate response
CVE Record

CVE-2022-4141: Heap-based Buffer Overflow in vim/vim

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.

HighCVSS 7.3Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2022-4141 is a high-severity memory corruption flaw in Vim 9.0.0946 and earlier. It requires local access and user interaction, but successful exploitation could affect confidentiality, integrity, and availability. Business urgency is highest where Vim is installed on developer workstations, administrator jump hosts, CI images, or servers used to edit untrusted files.

Executive priority

Treat this as a patching priority for systems where Vim is commonly used by technical staff or administrators. It is not identified as actively exploited in the provided sources, but the impact rating is high and updates are available from upstream and vendors.

Technical view

The source bundle describes a heap-based buffer overflow in vim/vim, mapped to CWE-122. CVSS is 7.3 with AV:L/AC:L/PR:L/UI:R and high impact to confidentiality, integrity, and availability. Upstream fixed the issue in commit cc762a48d42b579fb7bdec2c614636b830342dd5; multiple Linux distributions issued security updates.

Likely exposure

Exposure is likely wherever Vim 9.0.0946 or earlier remains installed. The bundle does not provide CPEs or a complete package matrix, so teams should verify operating-system package status across endpoints, servers, containers, base images, and administrative environments.

Exploitation context

The bundle does not cite active exploitation, and KEV is false. Exploitation is local and requires user interaction, which lowers broad internet-facing risk but still matters for workstations and privileged editing environments handling untrusted content.

Researcher notes

Evidence supports a heap overflow in Vim with local, user-assisted exploitation requirements. The public bundle names upstream fix and downstream advisories, but does not include CPEs, a full affected-version matrix, or proof of active exploitation. Avoid extrapolating beyond Vim 9.0.0946 and earlier without vendor confirmation.

Mitigation direction

  • Update Vim using upstream or supported distribution security packages.
  • Prioritize developer, administrator, CI, and server base-image environments.
  • Follow Fedora, Gentoo, Debian, or other vendor advisories for package-specific fixes.
  • Reduce use of vulnerable Vim builds with untrusted files until patched.
  • Check vendor guidance if package fix status is unclear.

Validation and detection

  • Inventory installed Vim versions and identify 9.0.0946 or earlier.
  • Confirm patched packages include the upstream fixing commit or vendor security update.
  • Check containers and golden images, not only live hosts.
  • Review distribution advisory status for each supported operating system.
  • Document exceptions where legacy systems cannot be updated promptly.
Prepared
Confidence
high
Sources
9

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-122: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-4141 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.3 (3.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
8Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.3CVSS 3.0HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H1.35.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.0 score

7.3High
CVSS 3.0 vector shape for CVE-2022-4141Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
vimvim/vimunspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-122 · source CWE mapping

Heap-based Buffer Overflow

Heap-based Buffer Overflow represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.