Critical Out-of-Bounds Read Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

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

UBUNTU-CVE-2022-2183: Out-of-bounds Read in GitHub repository vim/vim prior to 8.2. Affects vim versions < 2:7.4.052-1ubuntu3.1+esm8. Fixed in 2:7.4.052-1ubuntu3.1+esm8. 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. The Vim package is available across various Linux distributions, including Ubuntu, and is known for its versatility in handling different file types and programming languages. However, a recent vulnerability has been identified that could potentially compromise the security of systems using affected versions of Vim.

Vulnerability Detail

The vulnerability, identified as CVE-2022-2183, is an out-of-bounds read issue that affects the Vim package prior to version 8.2. This flaw can be exploited by an attacker to read memory outside the intended boundaries, which may lead to information disclosure or other unintended behaviors. The vulnerability has a CVSS score of 7.8, indicating a high severity level that necessitates immediate attention from users and administrators.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm8

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

If immediate updating is not feasible, consider restricting access to the Vim editor or using alternative text editors until the package can be updated. Additionally, monitor for any unusual behavior in applications that utilize Vim.

Conclusion

The CVE-2022-2183 vulnerability poses a significant risk to users of the Vim text editor, with the potential for serious security implications. It is crucial for users to update to the latest version of Vim to protect their systems. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2022-2183 is a vulnerability in the Vim text editor that allows for out-of-bounds reading of memory, potentially leading to information disclosure.

You can check your Vim version by running 'vim --version' in the terminal. If your version is below 8.2, it is affected by this vulnerability.

Exploitation of this vulnerability could allow attackers to read sensitive information from memory, which may lead to further attacks or data breaches.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using a manifest file like package-lock.json. You can check your application for vulnerabilities without requiring access to the code.

Detailed information about CVE-2022-2183 can be found in security advisories and on platforms like Vulert, which provides insights into vulnerabilities affecting your software.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm8

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