Critical Security Vulnerability in vim Package: Red Hat Security Advisory RHSA-2021:4517

vim Updated 02 Oct 2025

Summary

29/09/2024
N/A
Yes i
High
7.8

RHSA-2021:4517: Red Hat Security Advisory: vim security update. Affects vim versions < 2:8.0.1763-16.el8. Fixed in 2:8.0.1763-16.el8. 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

The vim package is a widely-used text editor in Unix-like operating systems, known for its efficiency and versatility. It supports various programming languages and file formats, making it a staple for developers and system administrators. However, a recent security advisory has highlighted a critical vulnerability that affects multiple versions of vim, including its X11, common, and enhanced variants, posing significant risks to users who have not updated to the patched version.

Vulnerability Detail

The vulnerability identified in the vim package is a critical security flaw that allows attackers to exploit the software, potentially leading to unauthorized access and manipulation of system files. This vulnerability arises from improper handling of certain inputs, which could allow an attacker to execute arbitrary code. The ramifications of this vulnerability are severe, as it could compromise the integrity and confidentiality of the system, leading to data breaches or system failures. The CVSS score for this vulnerability is 7.8, indicating a high level of risk.

How To Fix

Minimum fixed version

2:8.0.1763-16.el8

This is the first release that contains the fix.

sudo dnf update vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can limit the permissions of the vim executable to reduce the risk of exploitation. This can be done by running the command: 'chmod 700 /usr/bin/vim'. However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The vim package has a critical vulnerability that poses significant risks to users who have not updated to the patched version. It is essential to apply the update promptly to safeguard against potential exploits. Users are encouraged to utilize tools like Vulert to monitor their applications for vulnerabilities in real-time.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

The vulnerability allows for arbitrary code execution due to improper input handling, posing a risk of unauthorized access.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

As a temporary workaround, you can restrict the permissions of the vim executable to mitigate risks until you can apply the update.

Failure to address this vulnerability could lead to unauthorized access, data breaches, and potential system compromise.

Detailed information can be found in the Red Hat Security Advisory RHSA-2021:4517, available at https://security.access.redhat.com.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:8.0.1763-16.el8

This is the first release that contains the fix.

sudo dnf update 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