Heap-based Buffer Overflow in vim/vim
Summary
| CVE | CVE-2022-2522 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-07-25 14:15:10 UTC |
| Updated | 2026-10-08 21:17:48 UTC |
| Description | Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS: 0.005810000 probability, percentile 0.461110000 (date 2026-10-10)
Problem Types: CWE-122 | CWE-122 CWE-122 Heap-based Buffer Overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.0 | [email protected] | Secondary | 7.8 | HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.0 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v3.0 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| patch 9.0.0060: accessing uninitialized memory when completing long line · vim/vim@b9e7173 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202305-16) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | |
| patch 9.0.0061: ml_get error with nested autocommand · vim/vim@5fa9f23 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| Heap-based Buffer Overflow in function ins_compl_infercase_gettext() vulnerability found in vim | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Patch, Third Party Advisory |
| Heap-based Buffer Overflow in function ins_compl_infercase_gettext() vulnerability found in vim | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Third Party Advisory |
| 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
- 182805 Debian Security Update for vim (CVE-2022-2522)
- 199672 Ubuntu Security Notification for Vim Vulnerabilities (USN-6302-1)
- 354478 Amazon Linux Security Advisory for vim : ALAS2022-2022-131
- 354497 Amazon Linux Security Advisory for vim : ALAS2022-2022-155
- 354585 Amazon Linux Security Advisory for vim : ALAS-2022-155
- 354794 Amazon Linux Security Advisory for vim : ALAS2-2023-1975
- 354870 Amazon Linux Security Advisory for vim : ALAS-2023-1716
- 355135 Amazon Linux Security Advisory for vim : ALAS2023-2023-098
- 672105 EulerOS Security Update for vim (EulerOS-SA-2022-2307)
- 672124 EulerOS Security Update for vim (EulerOS-SA-2022-2336)
- 672284 EulerOS Security Update for vim (EulerOS-SA-2022-2671)
- 672300 EulerOS Security Update for vim (EulerOS-SA-2022-2703)
- 710718 Gentoo Linux Vim, gVim Multiple Vulnerabilities (GLSA 202305-16)
- 752573 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:3229-1)
- 753066 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:4619-1)
- 902561 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10323)
- 902562 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10321)
- 903765 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10323-1)
- 903940 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10321-1)