Critical Out-of-Bounds Write Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

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

UBUNTU-CVE-2022-2210: Out-of-bounds Write in GitHub repository vim/vim prior to 8.2. Affects vim versions < 2:7.4.052-1ubuntu3.1+esm11. Fixed in 2:7.4.052-1ubuntu3.1+esm11. 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. The package is available across various Linux distributions, including Ubuntu. The vulnerability in question affects multiple versions of Vim, making it crucial for users to be aware of potential risks and updates.

Vulnerability Detail

The vulnerability, identified as CVE-2022-2210, is an out-of-bounds write issue that arises from improper handling of memory in the Vim codebase. This flaw can lead to arbitrary code execution, potentially allowing an attacker to gain unauthorized access or control over the affected system. The vulnerability was introduced in versions prior to 8.2 and has a CVSS score of 7.8, indicating a high severity level. Users are advised to take immediate action to mitigate risks associated with this vulnerability.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm11

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, users can mitigate the risk by restricting access to the Vim editor or using alternative text editors until the package is updated. Additionally, running Vim in a controlled environment or container can help isolate potential threats.

Conclusion

The out-of-bounds write vulnerability in the Vim package poses significant risks to users, potentially allowing unauthorized access and control. It is essential to update to the latest patched versions to mitigate these risks. Users should also consider using tools like Vulert to monitor for vulnerabilities in their software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2022-2210 is a vulnerability in the Vim text editor that allows for out-of-bounds writes, which can lead to arbitrary code execution.

You can check your version of Vim by running 'vim --version' in the terminal. Compare it with the affected versions listed in the vulnerability report.

If you cannot update Vim right away, consider using alternative text editors or restricting access to Vim until a patch is applied.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

The CVSS score for CVE-2022-2210 is 7.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm11

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