VDB
CVE-2022-4141
CVE-2022-4141
PUBLISHED
CVSS 7.3 HIGH
Heap-based Buffer Overflow in vim/vim
Reported by @huntrdev · Published November 25, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-enhanced | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:9.0.1006-1.amzn2.0.1 |
| vim-common | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:9.0.1006-1.amzn2.0.1 |
| vim-data | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:9.0.1006-1.amzn2.0.1 |
| vim-minimal | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:9.0.1006-1.amzn2.0.1 |
| vim | Alpine | 9.0.0999-r0 |
| vim-filesystem | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2, 2:9.0.1006-1.amzn2.0.1 |
| vim-X11 | Amazon Linux | 2:9.0.1006-1.amzn2.0.1 |
| vim-default-editor | Amazon Linux | 2:9.0.1160-1.amzn2023.0.2 |
| neovim | neovim | 0.10.0 |
| vim | vim | 9.0.0946 |
| vim/vim | vim | 9.0.0947 |
Risk scores
CVSS 3.0
7.3
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim/vim | unspecified |
| amazon:2 | vim-enhanced | 0 |
| amazon:2023 | vim-enhanced | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2 | vim-minimal | 0 |
| amazon:2023 | vim-minimal | 0 |
| vim | vim/vim | * |
| alpine | vim | 0 |
| amazon:2 | vim-filesystem | 0 |
| amazon:2 | vim-X11 | 0 |
| amazon:2 | vim-data | 0 |
| amazon:2 | vim-common | 0 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2023 | vim-filesystem | 0 |
Timeline
- Nov 25, 2022 CVE Published
- Nov 26, 2022 EPSS Score (30 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
- Jun 15, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-4141
vulnetix vdb fixes CVE-2022-4141
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-4141/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-1e14f3ae45 vendor-advisory
- FEDORA-2022-fc4c513d06 vendor-advisory
- GLSA-202305-16 vendor-advisory
- [debian-lts-announce] 20230612 [SECURITY] [DLA 3453-1] vim security update mailing-list
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html advisory