PT-2022-7594
CVE-2022-4141
·
Published
2022-11-24
·
Updated
2026-10-23
Description by
CVSS 3.1
7.8
HighMetricsAV: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.
Exploitability
Exploit
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾