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
Status: NEW
Alias: CVE-2023-0054
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nobody
QA Contact:
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:
Last Closed:

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.


Upstream patch:

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.