Bug 2046436 (CVE-2022-0351)

Summary: CVE-2022-0351 vim: access of memory location before start of buffer
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: bdettelb, caswilli, fhrdina, fjansen, gchamoul, jburrell, jwong, karsten, kaycoth, micjohns, saroy, sthirugn, vkrizan, vkumar, vmugicag, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4227 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to too many recursions, which can lead to a segmentation fault. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution.
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: 2046437, 2046528, 2046604, 2046605    
Bug Blocks: 2046438    

Description Guilherme de Almeida Suckevicz 2022-01-26 16:52:33 UTC
Access of Memory Location Before Start of Buffer in Conda vim prior to 8.2.

Reference:
https://huntr.dev/bounties/8b36db58-b65c-4298-be7f-40b9e37fd161

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

Comment 1 Guilherme de Almeida Suckevicz 2022-01-26 16:52:48 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2046437]

Comment 2 juneau 2022-01-26 21:29:12 UTC
Marking services affected/delegated for Yet Another Vim Flaw that is low/moderate in severity and unlikely to occur.

Comment 10 Sandipan Roy 2025-01-23 15:51:42 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.

Since Red Hat Enterprise Linux 6, 7 are Out-of-Support-Scope for Low/Moderate flaws, the issue is not currently planned to be addressed in future updates for RHEL-6,7. Only Important and Critical severity flaws will be addressed at this time.

For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/ and Red Hat Enterprise Linux Life Cycle & Updates Policy: https://access.redhat.com/support/policy/updates/errata/.