NULL Pointer Dereference Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2022-0696: NULL Pointer Dereference in GitHub repository vim/vim prior to 8.2.4428. Affects vim versions < 8.2.4619-r0. Fixed in 8.2.4619-r0. 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. However, like any software, it is susceptible to vulnerabilities that can compromise its functionality and security. The specific vulnerability in question is a NULL Pointer Dereference, which can lead to application crashes and potential exploitation.

Vulnerability Detail

The vulnerability identified as CVE-2022-0696 is a NULL Pointer Dereference found in the Vim package prior to version 8.2.4428. This issue arises from improper handling of certain inputs, which can cause the application to crash unexpectedly. If exploited, this vulnerability could allow an attacker to disrupt service or potentially execute arbitrary code, depending on the context in which Vim is used. The technical aspect of this vulnerability lies in the way Vim processes certain commands, leading to a state where it attempts to access memory that has not been allocated.

How To Fix

Minimum fixed version

8.2.4619-r0

This is the first release that contains the fix.

sudo apk add --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 specific commands or features in Vim that may trigger the vulnerability until they can apply the patch. Additionally, running Vim in a controlled environment or sandbox may help mitigate potential risks.

Conclusion

The NULL Pointer Dereference vulnerability in the Vim package poses a significant risk to users if not addressed. It is crucial to update to the latest patched versions to mitigate potential threats. Regular monitoring and updates are essential for maintaining software security.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

A NULL Pointer Dereference occurs when a program attempts to access memory that has not been allocated, leading to crashes or undefined behavior.

You can check if your Vim installation is affected by comparing your version with the patched versions mentioned above or by using tools like Vulert.

Failing to fix this vulnerability may lead to application crashes and could potentially allow attackers to exploit the issue for malicious purposes.

It is recommended to regularly check for updates and apply them promptly to ensure you have the latest security patches.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software by analyzing your manifest file.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

8.2.4619-r0

This is the first release that contains the fix.

sudo apk add --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