Critical Divide By Zero Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

30/01/2023
N/A
Yes i
High
7.8

ALPINE-CVE-2023-0512: Divide By Zero in GitHub repository vim/vim prior to 9.0.1247. Affects vim versions < 9.0.1251-r0. Fixed in 9.0.1251-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Vim is a highly configurable text editor built to enable efficient text editing. It is widely used by developers and system administrators for its powerful features and extensibility. However, recent vulnerabilities have raised concerns about its security, particularly a critical Divide By Zero issue that can lead to severe consequences if exploited.

Vulnerability Detail

The Divide By Zero vulnerability in Vim, identified as CVE-2023-0512, originates from improper handling of certain inputs, which can lead to a crash or arbitrary code execution. This vulnerability affects multiple versions of the Vim package across various Alpine Linux distributions. If exploited, it can compromise the integrity and availability of systems using the affected versions, making it crucial for users to address this issue promptly.

How To Fix

Minimum fixed version

9.0.1251-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using features or commands in Vim that may trigger the Divide By Zero vulnerability until the package is updated. However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The Divide By Zero vulnerability in the Vim package poses a significant risk to users of affected versions. It is essential to update to the patched version 9.0.1251-r0 to mitigate potential threats. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

The CVSS score of the Divide By Zero vulnerability in Vim is 7.8, indicating a high severity level.

The vulnerability affects Vim versions prior to 9.0.1251-r0 across Alpine Linux distributions v3.18 to v3.22.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

Exploitation of this vulnerability can lead to crashes or arbitrary code execution, compromising system integrity and availability.

While the best course of action is to update, users can temporarily avoid using specific Vim features that may trigger the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

9.0.1251-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback