CVE-2022-4141: Heap-based Buffer Overflow in vim/vim
Vulnerability summary
CVE-2022-4141 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 42.6% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 2Timeline
- 25-11-2022PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
Heap based buffer overflow in vim/vim 9.0.0946 and below by allowing an attacker to CTRL-W gf in the expression used in the RHS of the substitute command.
CVSS metrics
7 scores · 5 sources · 2 versions- 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
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.3HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
43%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.46% 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, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- vim< 2:9.0.1000-1
- debian_linuxEOL10.0 | 11.0
Alpine1 product
- vim< 9.0.0999-r0
Fedoraproject1 product
- fedoraEOL36 | 37
Mageia1 product
- vim< 9.0.963-1.mga8
Neovim1 product
- neovim≥ 0.1.0, < 0.10.0
Ubuntu1 product
- vimAll versions (No fix recorded)
7 vendors · 9 products
References
15 links- huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541fExploitIssue TrackingPatchThird Party Advisory