CVE-2023-0512
NixOS vulnerability analysis and mitigation

Overview

A divide by zero vulnerability was discovered in GitHub repository vim/vim prior to version 9.0.1247. The vulnerability was assigned CVE-2023-0512 and was disclosed in January 2023. The issue affects the 'smoothscroll' functionality when the window is too narrow (VIM Commit).

Technical details

The vulnerability occurs in the adjust_skipcol() function when the window width becomes too narrow while 'smoothscroll' is enabled. The issue could lead to a floating point exception error due to division by zero. The fix involves adding a check for when the window width (width1) is less than or equal to 0, and returning early in such cases to prevent the division by zero (VIM Commit).

Impact

When exploited, this vulnerability could cause an application to crash due to a floating point exception error when processing specially crafted files (Red Hat CVE).

Mitigation and workarounds

The vulnerability was patched in Vim version 9.0.1247. Users should upgrade to this version or later to mitigate the issue. The fix has been incorporated into various operating system distributions, including macOS Ventura 13.3, macOS Monterey 12.6.4, and macOS Big Sur 11.7.5 (Apple Security, Apple Security, Apple 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-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

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