
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-4173 is a use-after-free vulnerability affecting Vim text editor. The vulnerability was discovered in December 2021 and affects Vim versions prior to 8.2.3902. The issue occurs specifically with nested :def functions in Vim (CVE Mitre).
The vulnerability is caused by a use-after-free condition when handling nested :def functions. The issue was addressed in patch 8.2.3902 by improving memory handling and adding validation to ensure cmdlinep remains valid. The fix involved modifying how linetofree is passed from compiledeffunction() and adding checks to verify cmdlinep validity (Github Commit).
A successful exploitation of this vulnerability could lead to unexpected application termination or potential arbitrary code execution in the context of the Vim application (Debian Tracker).
The vulnerability has been fixed in Vim version 8.2.3902. Users are advised to upgrade to this version or later. The fix has been backported to various Linux distributions including Fedora, Debian, and Apple operating systems (Fedora Update, Apple Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."