CVE-2022-2862
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-2862 is a Use-After-Free vulnerability discovered in the GitHub repository vim/vim affecting versions prior to 9.0.0221. The vulnerability was identified in the vim9instr.c file, specifically in the generate_PCALL() function (VIM Commit, NVD).

Technical details

The vulnerability is classified as a Use-After-Free (CWE-416) issue with 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 issue occurs when compiling nested functions fails, leading to potential access of freed memory (NVD).

Impact

If successfully exploited, this vulnerability could allow an attacker to cause the application to crash or potentially execute arbitrary code. The vulnerability affects the integrity, confidentiality, and availability of the system, with all three impact metrics rated as High (NVD).

Mitigation and workarounds

The vulnerability was fixed in vim version 9.0.0221. The solution involves modifying the variable name handling to prevent it from being found after being freed. Users are advised to upgrade to version 9.0.0221 or later (VIM Commit, Debian Tracker).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management