PT-2022-7594 · Vim+4 · Vim+4

Brammool

·

Published

2022-11-24

·

Updated

2025-03-30

·

CVE-2022-4141

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions vim versions 9.0.0946 and below
Description The issue is related to a heap-based buffer overflow in the vim text editor, which can be exploited by an attacker to gain access to confidential data, compromise data integrity, and cause a denial of service. This can occur when an attacker uses CTRL-W gf in the expression used in the RHS of the substitute command. The exploitation of this issue may result in heap corruption, including buffer overflows and use-after-free situations, which are generally considered exploitable.
Recommendations For vim versions 9.0.0946 and below, consider disabling the substitute command or restricting the use of CTRL-W gf in the expression used in the RHS of the substitute command as a temporary workaround until a patch is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Memory Corruption

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2022-3261
ALT-PU-2022-3301
ALT-PU-2022-3344
AZL-11504
BDU:2024-07352
CVE-2022-4141
DLA-3453-1
DLA-4097-1
MGASA-2022-0464
OESA-2022-2135
OPENSUSE-SU-2022_4631-1
SUSE-SU-2022:4631-1
SUSE-SU-2023:0209-1

Affected Products

Alt Linux
Astra Linux
Debian
Suse
Vim