Vulnerability · Published Dec 25, 2021 · Assigned by @huntrdev
CVE-2021-4166Out-of-bounds Read in vim/vim
High 7.1
In plain English
A high-severity out-of-bounds read 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 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.1High
Exploit odds (30 days)1.7%top 22.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
vim is vulnerable to Out-of-bounds Read
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4166 |
| Alpine:v3.21 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4166 |
| Alpine:v3.22 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4166 |
| Alpine:v3.23 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4166 |
| Alpine:v3.24 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4166 |
| Debian:12 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4166 |
| Debian:13 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4166 |
| Debian:14 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4166 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.7 | USN-6026-1 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
References
- https://huntr.dev/bounties/229df5dd-5507-44e9-832c-c70364bdf035 x_refsource_CONFIRM
- https://github.com/vim/vim/commit/6f98371532fcff911b462d51bc64f2ce8a6ae682 x_refsource_MISC
- FEDORA-2022-a3d70b50f0 vendor-advisory, x_refsource_FEDORA
- [oss-security] 20220114 Re: 3 new CVE's in vim mailing-list, x_refsource_MLIST
- FEDORA-2022-48b86d586f vendor-advisory, x_refsource_FEDORA
- https://support.apple.com/kb/HT213183 x_refsource_CONFIRM
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 mailing-list, x_refsource_FULLDISC
- https://support.apple.com/kb/HT213256 x_refsource_CONFIRM
- 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 mailing-list, x_refsource_FULLDISC
- https://support.apple.com/kb/HT213343 x_refsource_CONFIRM
- 20220721 APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina mailing-list, x_refsource_FULLDISC
- GLSA-202208-32 vendor-advisory, x_refsource_GENTOO