Critical Use After Free Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

05/12/2022
N/A
Yes i
High
7.8

UBUNTU-CVE-2022-4292: Use After Free in GitHub repository vim/vim prior to 9.0.0882. Affects vim versions < 2:8.0.1453-1ubuntu1.13+esm5. Fixed in 2:8.0.1453-1ubuntu1.13+esm5. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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. However, it has recently been found to contain a critical vulnerability that could allow attackers to exploit the software, leading to potential data breaches or system compromise.

Vulnerability Detail

The vulnerability identified as CVE-2022-4292 is a Use After Free issue in the Vim package, specifically affecting versions prior to 9.0.0882. This flaw arises when the software attempts to access memory that has already been freed, which can lead to arbitrary code execution. Attackers could exploit this vulnerability to execute malicious code, potentially compromising the integrity and confidentiality of the system. The CVSS score for this vulnerability is 7.8, indicating a high severity level.

How To Fix

Minimum fixed version

2:8.0.1453-1ubuntu1.13+esm5

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 features of Vim that may trigger the vulnerability until the package is updated. Additionally, running Vim in a restricted environment or using alternative text editors may mitigate the risk until a fix is applied.

Conclusion

The Use After Free vulnerability in the Vim package poses a significant risk to users, allowing potential attackers to execute arbitrary code. It is crucial for users to update their Vim installations to the latest patched versions to mitigate this risk. Utilizing tools like Vulert can further enhance security by providing real-time monitoring of vulnerabilities.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2022-4292 is a critical Use After Free vulnerability found in the Vim text editor, which can lead to arbitrary code execution.

You can check if your Vim installation is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor vulnerabilities without any signup.

If you cannot update Vim immediately, consider using alternative text editors or running Vim in a restricted environment to minimize risk.

Exploitation of this vulnerability could lead to unauthorized access, data breaches, or system compromise, impacting the confidentiality and integrity of your system.

Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software, helping you stay informed about potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:8.0.1453-1ubuntu1.13+esm5

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