
Cloud Vulnerability DB
A community-led vulnerabilities database
A Use-After-Free vulnerability was discovered in Vim editor prior to version 8.2, identified as CVE-2022-0413. The vulnerability occurs when the substitute command uses a recursive function call, potentially leading to memory corruption (CVE, Red Hat).
The vulnerability exists in the substitute functionality of Vim when it uses a recursive function call. The issue specifically occurs in src/ex_cmds.c where the substitute text memory is freed but still accessed afterward. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, indicating local attack vector, low attack complexity, no privileges required, and user interaction required (Ubuntu).
If successfully exploited, this vulnerability could lead to a denial-of-service condition through application crash or potentially have other unspecified impacts due to the use of freed memory (Debian LTS).
The vulnerability has been fixed in Vim version 8.2.4253 with a patch that makes a copy of the substitute text before processing. Users are recommended to upgrade to the fixed version. The fix involves modifying the substitute command handling to prevent the use-after-free condition (GitHub Commit).
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."