CVE-2022-0413
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

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-14330CRITICAL9.8
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • rhel10::thunderbird-flatpak
NoYesDec 09, 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