Bug 2161348 (CVE-2023-0051) - CVE-2023-0051 vim: heap-based buffer overflow in msg_puts_printf() in message.c
Summary: CVE-2023-0051 vim: heap-based buffer overflow in msg_puts_printf() in message.c
Keywords:
Status: NEW
Alias: CVE-2023-0051
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2161352 2161373
Blocks: 2159622
TreeView+ depends on / blocked
 
Reported: 2023-01-16 16:50 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-07 08:32 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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]


Note You need to log in before you can comment on or make changes to this bug.