CVE-2022-4292
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-4292 is a Use-After-Free vulnerability discovered in Vim's didsetspelllang() function of the spell.c file, affecting versions prior to 9.0.0882. The vulnerability was disclosed on December 5, 2022, and impacts the Vim text editor and its variants (CVE, NVD).

Technical details

The vulnerability occurs when Vim uses freed memory after a SpellFileMissing autocmd uses bwipe. The issue specifically manifests in the didsetspelllang() function when the window no longer exists after the SpellFileMissing autocommand execution. 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 (Ubuntu, RedHat).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability affects the confidentiality, integrity, and availability of the system with high impact ratings (NetApp).

Mitigation and workarounds

The vulnerability has been fixed in Vim version 9.0.0882 and later. The fix involves adding a check to bail out if the window no longer exists after the SpellFileMissing autocommand execution. Users are advised to upgrade to the patched version. The fix was implemented through commit c3d27ada14acd02db357f2d16347acc22cb17e93 in the Vim repository (GitHub).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9642CRITICAL9.6
  • GitLabGitLab
  • gitlab
NoYesSep 26, 2025
CVE-2025-11042HIGH7.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesSep 26, 2025
CVE-2025-5069MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesSep 26, 2025
CVE-2025-9958MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesSep 26, 2025
CVE-2025-10868MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesSep 26, 2025

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