Vulnerability · Published Dec 29, 2021 · Assigned by @huntrdev
CVE-2021-4187Use After Free in vim/vim
Medium 6.8
In plain English
A medium-severity use-after-free 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.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)6.8Medium
Exploit odds (30 days)1.8%top 21.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
vim is vulnerable to Use After Free
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4187 |
| Alpine:v3.21 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4187 |
| Alpine:v3.22 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4187 |
| Alpine:v3.23 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4187 |
| Alpine:v3.24 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4187 |
| Debian:12 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4187 |
| Debian:13 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4187 |
| Debian:14 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4187 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2 | UBUNTU-CVE-2021-4187 |
Affected products (as reported)
Weakness: CWE-416 · Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H
References
- https://huntr.dev/bounties/a8bee03a-6e2e-43bf-bee3-4968c5386a2e x_refsource_CONFIRM
- https://github.com/vim/vim/commit/4bf1006cae7e87259ccd5219128c3dba75774441 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
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html