Bug 2161349 (CVE-2023-0054) - CVE-2023-0054 vim: out-of-bounds write in do_string_sub() in eval.c
Summary: CVE-2023-0054 vim: out-of-bounds write in do_string_sub() in eval.c
Keywords:
Status: NEW
Alias: CVE-2023-0054
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: 2161353 2161374 2161375
Blocks: 2159622
TreeView+ depends on / blocked
 
Reported: 2023-01-16 16:53 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-07 08:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds write flaw was found in Vim, in the do_string_sub function in the eval.c file. The issue occurs because of an invalid memory access due to a missing check of the return value of the vim_regsub function when a specially crafted input is processed. This flaw allows an attacker who can trick a user into opening a specially crafted file to trigger the out-of-bounds write, causing the application to crash.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2023-01-16 16:53:12 UTC
Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.1145.

Reference:
https://huntr.dev/bounties/b289ee0f-fd16-4147-bd01-c6289c45e49d

Upstream patch:
https://github.com/vim/vim/commit/3ac1d97a1d9353490493d30088256360435f7731

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

Affects: fedora-all [bug 2161353]


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