Heap-based Buffer Overflow in Vim Package - CVE-2023-0433

vim Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2023-0433: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1225. 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, like many software packages, it can be susceptible to vulnerabilities that may compromise its security and functionality. The specific vulnerability in question, CVE-2023-0433, affects multiple versions of the Vim package in Alpine Linux distributions.

Vulnerability Detail

CVE-2023-0433 is a heap-based buffer overflow vulnerability found in Vim prior to version 9.0.1225. This vulnerability arises from improper handling of memory, which can lead to arbitrary code execution or crashes. If exploited, it could allow an attacker to execute malicious code, potentially compromising the system's integrity and confidentiality. The CVSS score for this vulnerability is 7.8, indicating a high severity level.

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 in Vim that may trigger the vulnerability until the package is updated. Additionally, running Vim in a restricted environment or using alternative text editors may mitigate the risk until a fix is applied.

Conclusion

CVE-2023-0433 is a significant vulnerability affecting the Vim package in Alpine Linux distributions, with the potential for severe consequences if exploited. Users are strongly advised to update to the patched version to ensure their systems remain secure. Utilizing tools like Vulert can further enhance your ability to monitor and manage vulnerabilities in your software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-0433 is a heap-based buffer overflow vulnerability in the Vim text editor that can lead to arbitrary code execution.

You can check your version of Vim by running 'vim --version' in your terminal. If it is prior to 9.0.1225, it is vulnerable.

If an immediate update is not possible, consider using alternative text editors or restricting Vim's usage until the vulnerability is patched.

More information can be found in the official CVE database or by visiting the GitHub repository for Vim.

Vulert monitors and alerts for open-source vulnerabilities in your software by analyzing a manifest file like package-lock.json, providing real-time insights without requiring code access.

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