Critical Out-of-range Pointer Offset Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

23/02/2022
N/A
Yes i
High
8.8

ALPINE-CVE-2022-0729: Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4440. 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 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 can be susceptible to vulnerabilities that may compromise its functionality and security. The specific vulnerability in question affects multiple versions of the Vim package across various Alpine Linux distributions.

Vulnerability Detail

The vulnerability identified as CVE-2022-0729 is a critical out-of-range pointer offset issue found in the Vim text editor. This flaw allows attackers to exploit the software by manipulating pointer offsets, potentially leading to arbitrary code execution or crashes. The vulnerability originates from improper handling of memory pointers, which can be exploited in scenarios where user input is processed. The CVSS score for this vulnerability is 8.8, indicating a high severity level that necessitates immediate attention.

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 features of Vim that may trigger the vulnerability until they can apply the patch. It is advisable to limit the use of plugins or scripts that process untrusted input.

Conclusion

The CVE-2022-0729 vulnerability in the Vim package poses a significant risk due to its potential for exploitation through out-of-range pointer offsets. Users are strongly advised to update their Vim installations to the latest patched versions to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2022-0729 is a vulnerability in the Vim text editor that allows for out-of-range pointer offset exploitation, potentially leading to security breaches.

You can check if your version of Vim is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

Failing to address this vulnerability may expose your system to arbitrary code execution, crashes, and other security risks.

Yes, you can temporarily limit the use of certain Vim features or plugins that may exploit the vulnerability until you can update to the patched version.

The CVSS score of CVE-2022-0729 is 8.8, indicating a high severity level that requires prompt action.

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