CVE-2022-0158: Heap-based Buffer Overflow in vim/vim
Vulnerability summary
CVE-2022-0158 is a medium (CVSS 6.8) Heap-based Buffer Overflow vulnerability in apple macos. EPSS estimates a 1.83% chance of exploitation in the next 30 days, higher than 79.5% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 10-01-2022PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
vim is vulnerable to Heap-based Buffer Overflow
CVSS metrics
8 scores · 5 sources · 3 versions- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- NVDNIST3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated6.8MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- NVDNIST6.8MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS trend
Probability
1.83%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.83% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.dev)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim< 8.2.4173-r0
Apple1 product
- macos< 12.3 | ≥ 11.0, < 11.6.8
Debian1 product
- vim< 2:8.2.4659-1
Fedoraproject1 product
- fedoraEOL34 | 35
Ubuntu1 product
- vim< 2:8.2.3995-1ubuntu2.9
6 vendors · 7 products
References
16 links- huntr.dev/bounties/ac5d7005-07c6-4a0a-b251-ba9cdbf6738bX Refsource CONFIRMExploitPatchThird Party Advisory
- github.com/vim/vim/commit/5f25c3855071bd7e26255c68bf458b1b5cf92f39X Refsource MISCPatchThird Party Advisory