NULL Pointer Dereference Vulnerability in Vim Package (CVE-2022-0696)

vim Updated 02 Oct 2025

Summary

21/02/2022
N/A
Yes i
Medium
5.5

UBUNTU-CVE-2022-0696: NULL Pointer Dereference in GitHub repository vim/vim prior to 8.2.4428. 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 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 package includes various binaries such as vim, vim-common, and vim-gtk, which provide different interfaces and functionalities for users. This vulnerability affects Vim versions prior to 8.2.4428, exposing users to potential crashes and data loss due to a NULL pointer dereference.

Vulnerability Detail

The vulnerability, identified as CVE-2022-0696, originates from a NULL pointer dereference in the Vim codebase prior to version 8.2.4428. This flaw can lead to application crashes, resulting in loss of unsaved data and potentially allowing an attacker to exploit the situation to execute arbitrary code. The vulnerability is particularly concerning for users who rely on Vim for critical tasks, as it compromises the stability and reliability of the editor.

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 features in Vim that may trigger the NULL pointer dereference until the package is updated. However, the best course of action is to apply the patch as soon as possible.

Conclusion

The NULL Pointer Dereference vulnerability in the Vim package (CVE-2022-0696) poses significant risks to users, including application crashes and potential data loss. It is crucial for users to update their Vim installations to the patched version to mitigate these risks. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2022-0696 is a vulnerability in the Vim text editor that allows for a NULL pointer dereference, potentially leading to application crashes.

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

The risks include application crashes, loss of unsaved data, and potential exploitation by attackers to execute arbitrary code.

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

You can use the Vulert playground at Vulert Scanner to check if your application is affected by vulnerabilities without requiring signup.

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