Bug 2161348 (CVE-2023-0051)

Summary: CVE-2023-0051 vim: heap-based buffer overflow in msg_puts_printf() in message.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: zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow was found in Vim in the msg_puts_printf function in the message.c file. The issue occurs because of an invalid memory access when calculating the length of a string 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.
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: 2161352, 2161373    
Bug Blocks: 2159622    

Description Guilherme de Almeida Suckevicz 2023-01-16 16:50:36 UTC
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1144.

Reference:
https://huntr.dev/bounties/1c8686db-baa6-42dc-ba45-aed322802de9

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

Comment 1 Guilherme de Almeida Suckevicz 2023-01-16 17:05:04 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2161352]