CVE-2022-3296
NixOS vulnerability analysis and mitigation

Overview

A Stack-based Buffer Overflow vulnerability was discovered in the Vim text editor (CVE-2022-3296) affecting versions prior to 9.0.0577. The vulnerability was identified in September 2022 and specifically affects the exfinally() function in exeval.c file of the GitHub repository vim/vim (NVD, Debian Tracker).

Technical details

The vulnerability is classified as a Stack-based Buffer Overflow with a CVSS v3.1 base score of 7.8 (HIGH). The vulnerability vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, indicating local access, low attack complexity, no privileges required, and user interaction required. The vulnerability has been categorized under CWE-787 (Out-of-bounds Write) and CWE-121 (Stack-based Buffer Overflow) (NVD).

Impact

If successfully exploited, this vulnerability could lead to high impacts on confidentiality, integrity, and availability of the affected system. The stack buffer overflow condition could potentially allow an attacker to execute arbitrary code or cause the application to crash when processing specially crafted input (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Vim version 9.0.0577 and later. Users are advised to upgrade to the patched version. The fix was implemented through a commit that addresses the buffer underflow issue with unexpected :finally statements (Github Patch).

Community reactions

Multiple Linux distributions have responded to this vulnerability by releasing security updates, including Fedora and Gentoo. Fedora included this fix in their security updates for versions 35, 36, and 37 (Fedora Update, Gentoo Security).

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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 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