Critical Out-of-Bounds Write Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2023-0054: Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.1145. 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 Your last release was probably never penetration tested 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, recent vulnerabilities have raised concerns about its security, particularly an out-of-bounds write issue that can lead to severe consequences if exploited.

Vulnerability Detail

The vulnerability, identified as CVE-2023-0054, is an out-of-bounds write that affects versions of Vim prior to 9.0.1145. This flaw can allow attackers to write data outside the bounds of allocated memory, potentially leading to arbitrary code execution, data corruption, or system crashes. The vulnerability originates from improper handling of certain inputs, making it critical for users to address it promptly.

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 patching is not feasible, consider restricting access to the Vim application or using alternative text editors until the vulnerability can be addressed. Additionally, monitor for any unusual behavior in applications that utilize Vim.

Conclusion

The out-of-bounds write vulnerability in the Vim package is a serious security concern that requires immediate attention. Users should ensure they are using the latest patched version to mitigate risks. Regular monitoring and updates are essential to maintain software security.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-0054 is a critical out-of-bounds write vulnerability in the Vim text editor that can lead to arbitrary code execution.

You can check your Vim version by running vim --version in your terminal. If it is below 9.0.1167-r0, it is vulnerable.

Exploitation of this vulnerability can lead to arbitrary code execution, data corruption, or system crashes, posing significant risks to system integrity.

Yes, tools like Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software without requiring access to the code.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

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