CVE-2022-4141: debian debian_linux Heap-based Buffer Overflow
CVSS: 7.8v3.1HighAnalyzed
AliasesALPINE-CVE-2022-4141MGASA-2022-0464UBUNTU-CVE-2022-4141DEBIAN-CVE-2022-4141
Published 25-11-2022Last modified 03-11-2025
Vulnerability summary
CVE-2022-4141 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.3% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.8/10
010
High · v3.1 (NVD)EPSS score
0.45%
0%100%
Low · +0.01 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
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 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
High 7.3Preferred score · CVE.org (CNA)
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HSourcesAll 3 agree
- 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.45%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
+0.01 pp
From 0.43% on 18-09-2026
18-09-202618-10-2026
EPSS score0.45%
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
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