CVE-2022-4141

7.8 HIGH
Published: November 25, 2022 Modified: November 03, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5
Source: security@huntr.dev
Patch Third Party Advisory
https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f
Source: security@huntr.dev
Exploit Issue Tracking Patch Third Party Advisory
https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Third Party Advisory
https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Issue Tracking Patch Third Party Advisory
https://security.gentoo.org/glsa/202305-16
Source: af854a3a-2127-422b-91ae-364da2661108

13 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.8 / 10.0
EPSS (Exploit Probability)
0.0%
12th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

fedoraproject vim