Heap-based Buffer Overflow in vim/vim
Published Nov 25, 2022
7.8
HIGHCVSS 3.1
EPSS 0.45%
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.
Affected products
-
- Version unspecifiedStatusaffectedConstraints<9.0.0947
- Version
Configuration 1
- 10.0
- 11.0
Configuration 4
- 36
- 37
No data.
Red Hat Enterprise Linux 6
vim
Not affected
Red Hat Enterprise Linux 7
vim
Not affected
Red Hat Enterprise Linux 8
vim
Not affected
Red Hat Enterprise Linux 9
vim
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | vim | Not affected | n/a |
| Red Hat Enterprise Linux 7 | vim | Not affected | n/a |
| Red Hat Enterprise Linux 8 | vim | Not affected | n/a |
| Red Hat Enterprise Linux 9 | vim | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having a Low security impact, because the "victim" has to run an untrusted file in script mode. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/ and Red Hat Enterprise Linux Life Cycle & Updates Policy: https://access.redhat.com/support/policy/updates/errata/.
Red Hat mitigation
Untrusted vim scripts with -s [scriptin] are not recommended to run.
References (11)
- https://access.redhat.com/security/cve/CVE-2022-4141 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2148991 Issue Tracking
- https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5 PatchThird Party Advisory
- https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f ExploitIssue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html mailing-list
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/ vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-4141
- https://security.gentoo.org/glsa/202305-16 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2022-4141
Change history (0)
No recorded changes yet.