Bug 2237315 (CVE-2023-4733)

Summary: CVE-2023-4733 vim: use-after-free in function buflist_altfpos
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.1840 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Vim, where it is vulnerable to a use-after-free in the buflist_altfpos function. This flaw allows a specially crafted file to crash software, use unexpected values, or possibly execute code when opened in Vim.
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: 2237363    
Bug Blocks: 2237310    

Description Patrick Del Bello 2023-09-04 18:21:03 UTC
Use After Free in GitHub repository vim/vim prior to 9.0.1840.

https://huntr.dev/bounties/1ce1fd8c-050a-4373-8004-b35b61590217
https://github.com/vim/vim/commit/e1dc9a627536304bc4f738c21e909ad9fcf3974c

Comment 2 Sandipan Roy 2023-09-05 05:01:45 UTC
Red Hat Product Security has rated this issue as having a Low security impact, because the "victim" has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random python script and running it.

Comment 3 Marian Rehak 2023-09-05 06:14:19 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2237363]