
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-3974 is a Use After Free vulnerability discovered in Vim text editor. The vulnerability was disclosed on November 19, 2021, affecting multiple versions of Vim. The issue exists in the regexp_nfa.c file when using regular expressions with marks (UBUNTU, MITRE).
The vulnerability is caused by using freed memory when handling regular expressions with marks in the regexp_nfa.c file. The issue occurs specifically when getting the mark position, as the line may have been freed before being accessed again. 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. The vulnerability requires local access and user interaction to be exploited (UBUNTU).
If successfully exploited, this vulnerability could lead to unauthorized access to memory after it has been freed, potentially resulting in a denial of service (application crash) or other unspecified impacts. The vulnerability affects the confidentiality, integrity, and availability of the system with high severity (DEBIAN-LTS).
The vulnerability has been fixed in Vim version 8.2.3612 with the patch that ensures the line is retrieved again after getting the mark position. The fix was implemented in commit 64066b9. Multiple Linux distributions have released security updates to address this vulnerability, including Ubuntu, Debian, and Fedora (VIM-COMMIT, FEDORA-ANNOUNCE).
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."