CVE-2022-3520: vim Heap-based Buffer Overflow
CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2022-3520UBUNTU-CVE-2022-3520DEBIAN-CVE-2022-3520
Published 02-12-2022Last modified 23-04-2025
Vulnerability summary
CVE-2022-3520 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in vim. EPSS estimates a 1.07% chance of exploitation in the next 30 days, higher than 64.3% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
1.07%
0%100%
Low · +0.04 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 02-12-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0765.
CVSS metrics
7 scores · 5 sources · 2 versionsCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 4 agree
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
High 7.8Preferred score · CVE.org (CNA)
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.07%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
+0.04 pp
From 1.03% on 20-09-2026
20-09-202620-10-2026
EPSS score1.07%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.dev)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Alpine1 product
- vim< 8.2.4836-r1 | < 8.2.5000-r1
Debian1 product
- vim< 2:9.0.0813-1
Ubuntu1 product
- vim< 2:8.1.2269-1ubuntu5.18 | < 2:8.2.3995-1ubuntu2.12
4 vendors · 5 products
References
9 links- security.gentoo.org/glsa/202305-16Vendor Advisory