Bug 2083017 (CVE-2022-1616)

Summary: CVE-2022-1616 vim: heap-buffer-overflow in append_command of src/ex_docmd.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.4895 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 append_command of the src/ex_docmd.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:24 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: 2083472, 2111904    
Bug Blocks: 2083030    

Description TEJ RATHI 2022-05-09 06:11:26 UTC
Heap Buffer Overflow in append_command in vim/vim prior to 8.2.4895.

https://github.com/vim/vim/commit/d88934406c5375d88f8f1b65331c9f0cab68cc6c
https://huntr.dev/bounties/40f1d75f-fb2f-4281-b585-a41017f217e2

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

Affects: fedora-all [bug 2083472]

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