Out-of-range Pointer Offset Vulnerability in vim

vim Updated 02 Oct 2025

Summary

20/02/2022
N/A
Yes i
High
7.8

CVE-2022-0685: Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4418. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Vim is a highly configurable text editor built for efficiently creating and modifying any kind of text. It is widely used by developers and system administrators for editing code, configuration files, and other text-based documents. The vulnerability in question, CVE-2022-0685, affects versions of vim prior to 8.2.4418. This vulnerability arises from the use of an out-of-range pointer offset.

Vulnerability Detail

The out-of-range pointer offset vulnerability in vim can be exploited by an attacker to execute arbitrary code or cause a denial of service. By manipulating a pointer offset beyond its valid range, an attacker can corrupt memory and potentially gain control over the affected system. This vulnerability poses a high risk to the confidentiality, integrity, and availability of the system.

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

There is no known workaround for this vulnerability. It is essential to apply the official patch or update to the latest version of vim to mitigate the risk.

Conclusion

The out-of-range pointer offset vulnerability in vim poses a significant risk to the security and stability of affected systems. It is crucial to update to the latest version of vim and apply any available patches to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

This vulnerability can allow an attacker to execute arbitrary code or cause a denial of service, potentially compromising the affected system's confidentiality, integrity, and availability.

You can use the Vulert Playground at Vulert Scanner to check if your version of vim is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for any open-source vulnerabilities, including CVE-2022-0685.

At the time of this report, there are no known public exploits specifically targeting CVE-2022-0685. However, it is crucial to apply the necessary updates and patches to protect against potential attacks.

Yes, this vulnerability can be exploited remotely. An attacker can exploit the out-of-range pointer offset issue in vim over a network connection, potentially compromising the targeted system.

For more detailed information about CVE-2022-0685, including technical specifics and the latest updates, refer to the official CVE entry at https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0685.json.

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