Bug 2021290 (CVE-2021-3927)

Summary: CVE-2021-3927 vim: heap-based buffer overflow in gchar_cursor() in misc1.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: adudiak, alcohan, aprice, bdettelb, caswilli, dfreiber, doconnor, drow, fjansen, gchamoul, gghezzo, gparvin, hkataria, jburrell, jdobes, jforrest, jkoehler, jmitchel, jnakfour, jramanat, jsamir, jtanner, jwong, karsten, kaycoth, kholdawa, kshier, lcouzens, lphiri, mpierce, mskarbek, njean, orabin, owatkins, pahickey, psegedy, rblanco, rhaigner, stcannon, sthirugn, teagle, vkrizan, vkumar, vmugicag, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.3581 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. A possible heap-based buffer overflow could allow an attacker to input a specially crafted file leading to a crash or code execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 12:24:28 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: 2021291, 2021395, 2021396    
Bug Blocks: 2021294    

Description Guilherme de Almeida Suckevicz 2021-11-08 18:10:44 UTC
vim is vulnerable to heap-based buffer overflow.

Reference:
https://huntr.dev/bounties/9c2b2c82-48bb-4be9-ab8f-a48ea252d1b0

Upstream patch:
https://github.com/vim/vim/commit/0b5b06cb4777d1401fdf83e7d48d287662236e7e

Comment 1 Guilherme de Almeida Suckevicz 2021-11-08 18:10:59 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2021291]