Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | <= 9.0.0946 |
| Fedoraproject | Fedora | 36 |
Related Weaknesses (CWE)
References
- https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5PatchThird Party Advisory
- https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541fExploitIssue TrackingPatch
- https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.gentoo.org/glsa/202305-16
- https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5PatchThird Party Advisory
- https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541fExploitIssue TrackingPatch
- https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.gentoo.org/glsa/202305-16
FAQ
What is CVE-2022-4141?
CVE-2022-4141 is a vulnerability with a CVSS score of 7.8 (HIGH). 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.
How severe is CVE-2022-4141?
CVE-2022-4141 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-4141?
Check the references section above for vendor advisories and patch information. Affected products include: Vim Vim, Fedoraproject Fedora.