Bug 2176462 (CVE-2023-1170)

Summary: CVE-2023-1170 vim: Heap-based Buffer Overflow
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jburrell, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.1376 Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow vulnerability was found in Vim's utf_ptr2char() function of the src/mbyte.c file. This flaw occurs because there is access to invalid memory with put in visual block mode. An attacker can trick a user into opening a specially crafted file, triggering an out-of-bounds read that causes an application to crash, leading to a denial of service.
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: 2176463, 2179903, 2179904    
Bug Blocks: 2177866    

Description Pedro Sampaio 2023-03-08 13:04:56 UTC
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1376.

References:

https://github.com/vim/vim/commit/1c73b65229c25e3c1fd8824ba958f7cc4d604f9c
https://huntr.dev/bounties/286e0090-e654-46d2-ac60-29f81799d0a4

Comment 1 Pedro Sampaio 2023-03-08 13:05:11 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2176463]

Comment 2 Zdenek Dohnal 2023-03-09 12:47:19 UTC
Hi,

the reproducer seems to be a vimscript combination - would you mind explaining why the vulnerability is not low, but medium?

Comment 3 Pedro Sampaio 2023-03-13 18:04:13 UTC
In reply to comment #2:
> Hi,
> 
> the reproducer seems to be a vimscript combination - would you mind
> explaining why the vulnerability is not low, but medium?

Initial triage set it to medium by description. Lowered to low now.