Heap-based Buffer Overflow in vim/vim
Summary
| CVE | CVE-2022-2849 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-08-17 18:15:08 UTC |
| Updated | 2026-10-09 14:17:08 UTC |
| Description | Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0220. |
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.004820000 probability, percentile 0.397250000 (date 2026-10-11)
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)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Fedoraproject | Fedora | 37 | All | All | All |
| Application | Vim | Vim | All | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| [SECURITY] Fedora 37 Update: vim-9.0.412-1.fc37 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202305-16) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | |
| patch 9.0.0220: invalid memory access with for loop over NULL string · vim/vim@f6d39c3 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| Heap-based Buffer Overflow in function latin_ptr2len vulnerability found in vim | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Issue Tracking, Patch, Third Party Advisory |
| [SECURITY] Fedora 37 Update: vim-9.0.412-1.fc37 - 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
- 182792 Debian Security Update for vim (CVE-2022-2849)
- 199271 Ubuntu Security Notification for Vim Vulnerabilities (USN-5995-1)
- 354087 Amazon Linux Security Advisory for vim : ALAS2-2022-1868
- 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
- 354870 Amazon Linux Security Advisory for vim : ALAS-2023-1716
- 355135 Amazon Linux Security Advisory for vim : ALAS2023-2023-098
- 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)
- 902759 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10582)
- 902763 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10570)
- 903941 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10570-1)
- 903979 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (10582-1)