VDB
CVE-2021-4166
CVE-2021-4166
PUBLISHED
CVSS 7.1 HIGH
Out-of-bounds Read in vim/vim
Reported by @huntrdev · Published December 25, 2021
vim is vulnerable to Out-of-bounds Read
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-data | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:8.2.4006-1.amzn2.0.1 |
| vim-filesystem | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:8.2.4006-1.amzn2.0.1 |
| vim-minimal | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:8.2.4006-1.amzn2.0.1 |
| vim-common | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:8.2.4006-1.amzn2.0.1 |
| vim-enhanced | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:8.2.4006-1.amzn2.0.1 |
| vim-default-editor | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2 |
| vim-X11 | Amazon Linux | 2:8.2.4006-1.amzn2.0.1 |
| vim | Alpine | 8.2.4173-r0 |
| vim | vim | 8.2.3884 |
| macos | apple | 12.3, 11.6.6 |
| vim/vim | vim | 8.2 |
Risk scores
CVSS 3.0
7.1
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim/vim | unspecified |
| amazon:2 | vim-data | 0 |
| amazon:2023 | vim-filesystem | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2 | vim-common | 0 |
| amazon:2 | vim-enhanced | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2 | vim-minimal | 0 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2 | vim-X11 | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2 | vim-filesystem | 0 |
| amazon:2023 | vim-enhanced | 0 |
| alpine | vim | 0 |
| vim | vim/vim | * |
Timeline
- Dec 25, 2021 CVE Published
- Dec 26, 2021 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory (3 in total, the first dated here)
- Jul 20, 2026 Coalition ESS Score
- Oct 8, 2026 CVE Updated
- Nov 22, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-4166
vulnetix vdb fixes CVE-2021-4166
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-4166/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- FEDORA-2022-a3d70b50f0 vendor-advisoryx_refsource_FEDORA
- [oss-security] 20220114 Re: 3 new CVE's in vim mailing-listx_refsource_MLIST
- FEDORA-2022-48b86d586f vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 mailing-listx_refsource_FULLDISC
- x_refsource_CONFIRM
- 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 mailing-listx_refsource_FULLDISC
- x_refsource_CONFIRM
- 20220721 APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina mailing-listx_refsource_FULLDISC
- GLSA-202208-32 vendor-advisoryx_refsource_GENTOO