Out-of-bounds Read in vim/vim
Summary
| CVE | CVE-2021-4166 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-12-25 19:15:07 UTC |
| Updated | 2026-10-08 21:17:42 UTC |
| Description | vim is vulnerable to Out-of-bounds Read |
Risk And Classification
Primary CVSS: v3.1 7.1 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Problem Types: CWE-125 | CWE-125 CWE-125 Out-of-bounds Read
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.1 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
| 3.0 | [email protected] | Secondary | 7.1 | HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
| 3.0 | CNA | DECLARED | 7.1 | HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
| 2.0 | [email protected] | Primary | 5.8 | AV:N/AC:M/Au:N/C:P/I:N/A:P |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
CVSS v3.0 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
PartialIntegrity
NoneAvailability
PartialAV:N/AC:M/Au:N/C:P/I:N/A:P
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Apple | Macos | All | All | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | All | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2020-001 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-001 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-002 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-003 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-004 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-005 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-006 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-007 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2021-008 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2022-001 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2022-002 | All | All |
| Operating System | Apple | Mac Os X | 10.15.7 | security_update_2022-003 | All | All |
| Operating System | Debian | Debian Linux | 10.0 | All | All | All |
| Operating System | Debian | Debian Linux | 11.0 | All | All | All |
| Operating System | Debian | Debian Linux | 9.0 | All | All | All |
| Operating System | Fedoraproject | Fedora | 34 | All | All | All |
| Operating System | Fedoraproject | Fedora | 35 | All | All | All |
| Application | Opensuse | Factory | - | All | All | All |
| Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
| Operating System | Suse | Linux Enterprise | 12.0 | All | All | All |
| Operating System | Suse | Linux Enterprise | 15.0 | All | All | All |
| Application | Vim | Vim | All | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| [SECURITY] Fedora 34 Update: vim-8.2.4068-1.fc34 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| About the security content of macOS Big Sur 11.6.6 - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Third Party Advisory |
| patch 8.2.3884: crash when clearing the argument list while using it · vim/vim@6f98371 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| About the security content of macOS Monterey 12.3 - Apple Support (PH) | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Release Notes, Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| oss-security - Re: 3 new CVE's in vim | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202208-32) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| About the security content of Security Update 2022-005 Catalina - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Third Party Advisory |
| [SECURITY] Fedora 35 Update: vim-8.2.4006-1.fc35 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| Out-of-bounds Read vulnerability found in vim | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Issue Tracking, Patch, Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-03-14-4 macOS Monterey 12.3 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| [SECURITY] Fedora 34 Update: vim-8.2.4068-1.fc34 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 35 Update: vim-8.2.4006-1.fc35 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 184066 Debian Security Update for vim (CVE-2021-4166)
- 199293 Ubuntu Security Notification for Vim Vulnerabilities (USN-6026-1)
- 282219 Fedora Security Update for vim (FEDORA-2022-a3d70b50f0)
- 282279 Fedora Security Update for vim (FEDORA-2022-48b86d586f)
- 296063 Oracle Solaris 11.4 Support Repository Update (SRU) 45.119.2 Missing (CPUAPR2022)
- 353117 Amazon Linux Security Advisory for vim : ALAS-2022-1557
- 353120 Amazon Linux Security Advisory for vim : ALAS2-2022-1743
- 354382 Amazon Linux Security Advisory for vim : ALAS2022-2022-014
- 354497 Amazon Linux Security Advisory for vim : ALAS2022-2022-155
- 354585 Amazon Linux Security Advisory for vim : ALAS-2022-155
- 355135 Amazon Linux Security Advisory for vim : ALAS2023-2023-098
- 376485 Apple MacOS Monterey 12.3 Not Installed (HT213183)
- 376608 Apple MacOS Big Sur 11.6.6 Not Installed (HT213256)
- 376739 Apple macOS Security Update 2022-005 Catalina (HT213343)
- 500730 Alpine Linux Security Update for vim
- 503065 Alpine Linux Security Update for vim
- 503333 Alpine Linux Security Update for vim
- 503407 Alpine Linux Security Update for vim
- 503496 Alpine Linux Security Update for vim
- 503523 Alpine Linux Security Update for vim
- 503571 Alpine Linux Security Update for vim
- 503608 Alpine Linux Security Update for vim
- 503639 Alpine Linux Security Update for vim
- 503658 Alpine Linux Security Update for vim
- 505951 Alpine Linux Security Update for vim
- 671418 EulerOS Security Update for vim (EulerOS-SA-2022-1363)
- 671458 EulerOS Security Update for vim (EulerOS-SA-2022-1441)
- 671465 EulerOS Security Update for vim (EulerOS-SA-2022-1462)
- 671501 EulerOS Security Update for vim (EulerOS-SA-2022-1499)
- 671521 EulerOS Security Update for vim (EulerOS-SA-2022-1518)
- 710607 Gentoo Linux Vim, gVim Multiple Vulnerabilities (GLSA 202208-32)
- 752246 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:2102-1)
- 753066 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:4619-1)
- 900419 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (7068)
- 901010 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (7075-1)