CVE-2023-3896
NixOS vulnerability analysis and mitigation

Overview

A divide-by-zero vulnerability was discovered in Vim versions 9.0.1367-1 through 9.0.1367-3. The vulnerability exists in the scrollcursorbot function when foldcolumn and smoothscroll features are enabled (GitHub Issue).

Technical details

The vulnerability occurs in the scrollcursorbot function where width1 is assigned the width of current window minus widths of linenumber and foldcolumn, which can be negative. If foldcolumn is enabled, width2 can be assigned 0, resulting in a divide-by-zero fault in the division operation (curwin->w_skipcol - width1) / width2 + 1 (GitHub Issue). The vulnerability has a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS) (NetApp Advisory).

Mitigation and workarounds

The vulnerability was fixed in Vim version 9.0.1894-1. The fix involves avoiding the use of negative width in the calculation (GitHub PR).

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