CVE-2022-0407: vim Heap-based Buffer Overflow
CVSS: 7.8v3.1HighModified
AliasesALPINE-CVE-2022-0407UBUNTU-CVE-2022-0407DEBIAN-CVE-2022-0407
Published 30-01-2022Last modified 02-08-2024
Vulnerability summary
CVE-2022-0407 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in vim. EPSS estimates a 1.16% chance of exploitation in the next 30 days, higher than 66.7% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.8/10
010
High · v3.1 (NVD)EPSS score
1.16%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 30-01-2022PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
CVSS metrics
8 scores · 5 sources · 3 versionsHigh 7.8Preferred score · NVD (NIST)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HSourcesAll 4 agree
- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Medium 5.7Preferred score · CVE.org (CNA)
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:LSourcesAll 3 agree
- OSV · UbuntuEcosystem advisory · calculated5.7MediumCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
- NVDNIST5.7MediumCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
Medium 6.8Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
1.16%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
0.00 pp
From 1.16% on 19-09-2026
19-09-202619-10-2026
EPSS score1.16%
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.4619-r0 | < 8.2.4350-r0
Debian1 product
- vim< 2:8.2.4659-1
Ubuntu1 product
- vim< 2:8.2.3995-1ubuntu2.9
4 vendors · 5 products
References
9 links- huntr.dev/bounties/81822bf7-aafe-4d37-b836-1255d46e572cX Refsource CONFIRMREPORTExploitPatchThird Party Advisory
- github.com/vim/vim/commit/44db8213d38c39877d2148eff6a72f4beccfb94eX Refsource MISCREPORTPatchThird Party Advisory