Out-of-bounds Read Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

31/12/2021
N/A
Yes i
Medium
5.5

ALPINE-CVE-2021-4193: vim is vulnerable to Out-of-bounds Read. Affects vim versions < 8.2.4173-r0. Fixed in 8.2.4173-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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, including syntax highlighting, multi-level undo, and extensive plugin support. However, like any software, it is not immune to vulnerabilities. The specific issue at hand is an out-of-bounds read vulnerability that can potentially expose sensitive information or lead to unexpected behavior.

Vulnerability Detail

The vulnerability identified as ALPINE-CVE-2021-4193 in the Vim package allows for an out-of-bounds read. This occurs when the software attempts to read data outside the allocated memory buffer, which can lead to information disclosure or application crashes. The vulnerability originates from improper handling of certain input data, making it a critical issue for users who rely on Vim for secure text editing. The CVSS score for this vulnerability is 5.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

8.2.4173-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 that may trigger the out-of-bounds read until the package is updated. However, it is strongly recommended to apply the patch as soon as possible to mitigate any risks.

Conclusion

The out-of-bounds read vulnerability in the Vim package poses a moderate risk to users, with the potential for information leakage or application instability. It is crucial to update to the patched version 8.2.4173-r0 to mitigate these risks. Users are encouraged to utilize tools like Vulert to monitor their applications for vulnerabilities effectively.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

An out-of-bounds read vulnerability occurs when a program reads data outside the allocated memory buffer, which can lead to information leakage or crashes.

You can check your version of Vim by running 'vim --version' in your terminal. If it is below 8.2.4173-r0, it is vulnerable.

If you cannot update Vim immediately, avoid using features that may trigger the vulnerability and monitor for updates.

More information can be found in the CVE database or by visiting the official Vim documentation and security advisories.

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

Related vulnerabilities

Recent vulnerabilities recorded for vim.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

8.2.4173-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