Vulnerability · Published Nov 25, 2022 · Assigned by @huntrdev

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

High 7.3

In plain English

A high-severity heap buffer overflow in vim/vim from vim. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.3High
Exploit odds (30 days)0.5%top 60.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20vim9.0.0999-r0ALPINE-CVE-2022-4141
Alpine:v3.21vim9.0.0999-r0ALPINE-CVE-2022-4141
Alpine:v3.22vim9.0.0999-r0ALPINE-CVE-2022-4141
Alpine:v3.23vim9.0.0999-r0ALPINE-CVE-2022-4141
Alpine:v3.24vim9.0.0999-r0ALPINE-CVE-2022-4141
Debian:12vim2:9.0.1000-1DEBIAN-CVE-2022-4141
Debian:13vim2:9.0.1000-1DEBIAN-CVE-2022-4141
Debian:14vim2:9.0.1000-1DEBIAN-CVE-2022-4141
Ubuntu:22.04:LTSvimno fix listedUBUNTU-CVE-2022-4141

Affected products (as reported)

VendorProductVersions
vim vim/vim unspecified – before 9.0.0947

Weakness: CWE-122 · Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

References