Critical Out-of-Bounds Read Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

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

UBUNTU-CVE-2023-0049: Out-of-bounds Read in GitHub repository vim/vim prior to 9.0.1143. Affects vim versions < 2:7.4.052-1ubuntu3.1+esm6. Fixed in 2:7.4.052-1ubuntu3.1+esm6. 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. The package is known for its versatility across different platforms and its ability to handle various programming languages. However, it has been found to be vulnerable to an out-of-bounds read issue, which could potentially allow attackers to exploit the software.

Vulnerability Detail

The vulnerability, identified as CVE-2023-0049, originates from an out-of-bounds read in the Vim text editor prior to version 9.0.1143. This flaw could allow an attacker to read sensitive information from memory, leading to potential data leakage or unauthorized access. The severity of this vulnerability is rated at a CVSS score of 7.8, indicating a high risk to users who have not updated their software.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm6

This is the first release that contains the fix.

sudo apt-get install --only-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 limit the use of Vim in sensitive environments until the package is updated. Additionally, consider using alternative text editors that do not have this vulnerability until a fix is applied.

Conclusion

The out-of-bounds read vulnerability in the Vim package poses a significant risk to users. It is crucial to update to the latest version to mitigate potential threats. Regular monitoring of software vulnerabilities is recommended to maintain security.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-0049 is a vulnerability in the Vim text editor that allows for an out-of-bounds read, potentially leading to data leakage.

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

The vulnerability could allow attackers to read sensitive data from memory, which may lead to unauthorized access or data breaches.

Yes, you can use tools like Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json.

Detailed information can be found in the official Ubuntu security notices and the CVE database.

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

2:7.4.052-1ubuntu3.1+esm6

This is the first release that contains the fix.

sudo apt-get install --only-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