Vulnerability · Published Apr 17, 2022 · Assigned by @huntrdev
CVE-2022-1381global heap buffer overflow in skip_range in vim/vim
High 7.8
In plain English
A high-severity heap buffer overflow in vim/vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.1% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.8High
Exploit odds (30 days)3.1%top 12.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
global heap buffer overflow in skip_range in GitHub repository vim/vim prior to 8.2.4763. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | vim | 8.2.4836-r0 | ALPINE-CVE-2022-1381 |
| Alpine:v3.21 | vim | 8.2.4836-r0 | ALPINE-CVE-2022-1381 |
| Alpine:v3.22 | vim | 8.2.4836-r0 | ALPINE-CVE-2022-1381 |
| Alpine:v3.23 | vim | 8.2.4836-r0 | ALPINE-CVE-2022-1381 |
| Alpine:v3.24 | vim | 8.2.4836-r0 | ALPINE-CVE-2022-1381 |
| Debian:12 | vim | 2:8.2.4793-1 | DEBIAN-CVE-2022-1381 |
| Debian:13 | vim | 2:8.2.4793-1 | DEBIAN-CVE-2022-1381 |
| Debian:14 | vim | 2:8.2.4793-1 | DEBIAN-CVE-2022-1381 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H
References
- https://huntr.dev/bounties/55f9c0e8-c221-48b6-a00e-bdcaebaba4a4
- https://github.com/vim/vim/commit/f50808ed135ab973296bca515ae4029b321afe47
- FEDORA-2022-e304fffd34 vendor-advisory
- FEDORA-2022-b605768c94 vendor-advisory
- GLSA-202208-32 vendor-advisory
- https://support.apple.com/kb/HT213488
- 20221030 APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13 mailing-list
- 20221030 APPLE-SA-2022-10-24-2 macOS Ventura 13 mailing-list
- GLSA-202305-16 vendor-advisory