Critical Out-of-Bounds Read Vulnerability in vim Package

vim Updated 02 Oct 2025

Summary

06/01/2022
N/A
Yes i
High
7.8

UBUNTU-CVE-2022-0128: vim is vulnerable to Out-of-bounds Read. Affects vim versions < 2:8.2.3995-1ubuntu2.9. Fixed in 2:8.2.3995-1ubuntu2.9. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The vim package is a highly popular text editor used in various operating systems, including Ubuntu. It is known for its efficiency and versatility, allowing users to edit text files with a wide range of features. However, a critical vulnerability has been identified in version 2:8.2.3995-1ubuntu2.9, which could potentially compromise the security of systems using this version.

Vulnerability Detail

The vulnerability, identified as CVE-2022-0128, is an Out-of-bounds Read issue in the vim package. This flaw allows attackers to read memory outside the intended buffer, which can lead to information disclosure or even arbitrary code execution in certain scenarios. The vulnerability originates from improper handling of input data, making it a significant risk for users who rely on this text editor for sensitive tasks.

How To Fix

Minimum fixed version

2:8.2.3995-1ubuntu2.9

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 avoid using the affected features of vim until the package is updated. However, it is highly recommended to apply the patch as soon as possible to mitigate the risk.

Conclusion

The Out-of-bounds Read vulnerability in the vim package poses a significant risk to users. It is crucial to update to the patched version to ensure system security. Regular monitoring for vulnerabilities using tools like Vulert can help maintain a secure software environment.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2022-0128 is a vulnerability in the vim package that allows for Out-of-bounds Read, potentially leading to information disclosure.

You can check your version of vim by running 'vim --version' in the terminal. If it matches 2:8.2.3995-1ubuntu2.9, it is affected.

The risks include unauthorized access to sensitive information and possible arbitrary code execution, which could compromise system security.

Yes, tools like Vulert can help monitor and alert for open-source vulnerabilities in your software using just a manifest file.

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

2:8.2.3995-1ubuntu2.9

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