Bug 2106787 (CVE-2022-2344)

Summary: CVE-2022-2344 vim: heap-based buffer overflow in ins_compl_add() in insexpand.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: gchamoul, jburrell, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.0046 Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow was found in Vim in the ins_compl_add function in the insexpand.c file. This issue occurs due to a read past the end of a buffer when a specially crafted input is processed. This flaw allows an attacker who can trick a user into opening a specially crafted file into triggering the heap-based buffer overflow, causing the application to crash, possibly executing code and corrupting memory.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2107298, 2107299    
Bug Blocks: 2106038    

Description Guilherme de Almeida Suckevicz 2022-07-13 14:11:02 UTC
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0045.

Reference:
https://huntr.dev/bounties/4a095ed9-3125-464a-b656-c31b437e1996

Upstream patch:
https://github.com/vim/vim/commit/baefde14550231f6468ac2ed2ed495bc381c0c92