CVE-2022-4141 HIGH

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

Vendor Vim
Product vim/vim
Weakness CWE-122
Published November 25, 2022
Last update November 3, 2025

CVSS base score

7.3/10
Attack vector Local
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality High
Integrity High

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

November 25, 2022 CVE published
November 3, 2025 Record updated