CVE-2022-4141
Heap-based Buffer Overflow in vim/vim
- State
- Published
- Severity
- 7.3 High
- Published
- Nov 25, 2022
- Updated
- Nov 3, 2025
- Reserved
- Nov 25, 2022
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 7.3 High | CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | @huntrdev |
Weaknesses
- CWE-122 Heap-based Buffer Overflow
Affected Products
| Product | Versions |
|---|---|
vim/vimvim |
|
References
- https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f
- https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5
- FEDORA-2022-1e14f3ae45vendor-advisory
- FEDORA-2022-fc4c513d06vendor-advisory
- GLSA-202305-16vendor-advisory
- [debian-lts-announce] 20230612 [SECURITY] [DLA 3453-1] vim security updatemailing-list
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.