
Cloud Vulnerability DB
A community-led vulnerabilities database
Vim was found to be vulnerable to a Use After Free vulnerability (CVE-2022-0156) in the way it treated allocated lines in user functions. The vulnerability was discovered in early 2022 and affected multiple versions of Vim (Debian Tracker, Red Hat CVE).
The vulnerability stemmed from a complexity issue in keeping track of allocated lines in user functions. The problem was resolved by changing the approach to memory management - instead of freeing individual lines, they are now kept until the end of the function execution. The fix was implemented in vim version 8.2.4040 through a commit that modified the handling of allocated lines (GitHub Commit).
The vulnerability could potentially lead to memory corruption and program crashes when processing specially crafted input. The issue affected the CLI tool, though its security impact was considered relatively low (Debian Tracker).
The vulnerability was fixed in Vim version 8.2.4040. Various distributions released security updates to address this issue, including Fedora 34 and 35 (vim-8.2.4068), Debian (2:9.0.1378-2+deb12u2), and Apple's macOS updates (Fedora Update, Debian Tracker).
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."