Bug 2083026 (CVE-2022-1619)

Summary: CVE-2022-1619 vim: heap-buffer-overflow in cmdline_erase_chars of ex_getln.c
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: gchamoul, karsten, michal.skrivanek, mperina, sbonazzo, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4899 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim, which is vulnerable to a heap-buffer-overflow in cmdline_erase_chars of the ex_getln.c function. This flaw allows a specially crafted file to crash software, modify memory or execute code when opened in vim.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:46:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2083470, 2111905    
Bug Blocks: 2083030    

Description TEJ RATHI 2022-05-09 06:25:51 UTC
Heap-based Buffer Overflow in function cmdline_erase_chars in vim/vim prior to 8.2. 

https://huntr.dev/bounties/b3200483-624e-4c76-a070-e246f62a7450
https://github.com/vim/vim/commit/ef02f16609ff0a26ffc6e20263523424980898fe

Comment 1 Marian Rehak 2022-05-10 07:48:10 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2083470]

Comment 2 Marian Rehak 2022-05-26 11:58:32 UTC
Victim has to run an untrusted file IN SCRIPT MODE. Changing severity to Low.