CVE-2022-4141 — Heap based buffer overflow in vim/vim 9
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.
Published
2022-11-25T14:15:10.737
Last modified
2026-09-24T15:38:26.440
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
01What is this vulnerability?
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.
02Affected products
No structured affected-product list available — see references below for vendor advisories.
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2022-11-25T14:15:10.737
- Last modified: 2026-09-24T15:38:26.440
09References
- github.com — https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5
- huntr.dev — https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html
- lists.fedoraproject.org — https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro…
- lists.fedoraproject.org — https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro…
- security.gentoo.org — https://security.gentoo.org/glsa/202305-16
- github.com — https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5
- huntr.dev — https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →