Critical Vulnerability in vim Package: Use of Uninitialized Variable

vim Updated 02 Oct 2025

Summary

05/11/2021
N/A
Yes i
High
7.8

ALPINE-CVE-2021-3928: vim is vulnerable to Use of Uninitialized Variable. Affects vim versions < 8.2.3650-r0. Fixed in 8.2.3650-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 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. However, it has been identified to have a vulnerability that could potentially compromise system security.

Vulnerability Detail

The vulnerability, identified as CVE-2021-3928, arises from the use of an uninitialized variable within the vim package. This flaw can lead to unpredictable behavior, including potential information disclosure or system crashes. The vulnerability affects multiple versions of vim across various Alpine Linux releases, making it critical for users to address it promptly.

How To Fix

Minimum fixed version

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

If immediate updating is not feasible, consider limiting access to the vim editor or using alternative text editors until the vulnerability is patched.

Conclusion

The vim package has a critical vulnerability that requires immediate attention. Users are advised to update to the patched version to mitigate risks associated with the use of an uninitialized variable. Regular monitoring and updates are essential to maintain system security.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2021-3928 is a vulnerability in the vim package that involves the use of an uninitialized variable, potentially leading to security risks.

You can check if your installation is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor vulnerabilities without needing to install any software.

Failing to address this vulnerability may expose your system to security risks, including data leaks or crashes.

Yes, you can limit access to the vim editor or switch to alternative text editors as a temporary measure.

The CVSS score for CVE-2021-3928 is 7.8, indicating a high level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

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