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

vim Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2023-0051: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1144. Affects vim versions < 9.0.1167-r0. Fixed in 9.0.1167-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 is susceptible to vulnerabilities that can compromise its integrity and the security of the systems it runs on. The vulnerability identified as CVE-2023-0051 affects multiple versions of Vim in Alpine Linux distributions, highlighting the importance of maintaining updated software to mitigate security risks.

Vulnerability Detail

CVE-2023-0051 is a heap-based buffer overflow vulnerability found in the Vim text editor prior to version 9.0.1144. This vulnerability arises from improper handling of memory, which can allow an attacker to execute arbitrary code, potentially leading to system compromise. The severity of this vulnerability is rated with a CVSS score of 7.8, indicating a high risk to affected systems. Users of affected versions are advised to take immediate action to protect their systems from potential exploitation.

How To Fix

Minimum fixed version

9.0.1167-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

If immediate updating is not feasible, consider disabling any features or plugins in Vim that may expose the vulnerability until a patch can be applied. Additionally, running Vim in a restricted environment can help mitigate potential risks.

Conclusion

CVE-2023-0051 represents a significant security risk for users of the Vim text editor in Alpine Linux distributions. It is crucial to update to the patched version to mitigate potential exploitation. Users are encouraged to remain vigilant and utilize tools like Vulert to monitor for vulnerabilities in their software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-0051 is a heap-based buffer overflow vulnerability in the Vim text editor that can allow attackers to execute arbitrary code.

Versions of Vim prior to 9.0.1144 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Consider disabling features or plugins that may expose the vulnerability and run Vim in a restricted environment until you can apply the patch.

The CVSS score of CVE-2023-0051 is 7.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

9.0.1167-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