Critical Command Execution Vulnerability in Vim Package

vim Updated 30 Apr 2026

Summary

30/04/2026
N/A
Yes i
High
8.2

RLSA-2026:11510: Important: vim security update. Affects vim versions < 2:8.2.2637-23.el9_7.3. Fixed in 2:8.2.2637-23.el9_7.3. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Vim, short for Vi IMproved, 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 found to have a significant security vulnerability that allows for arbitrary command execution through a modeline sandbox bypass, potentially compromising system integrity.

Vulnerability Detail

The vulnerability, identified as CVE-2026-34982, arises from a flaw in Vim's modeline feature, which allows users to specify editor settings within the text files. This flaw can be exploited to execute arbitrary commands, posing a severe risk to users who open files with malicious modelines. The potential ramifications include unauthorized access to system resources and data breaches, making it critical for users to address this vulnerability promptly.

How To Fix

Minimum fixed version

2:8.2.2637-23.el9_7.3

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 workaround, users can disable modelines in Vim by adding the following line to their Vim configuration file (usually located at ~/.vimrc): 'set nomodeline'. This will prevent Vim from executing any commands specified in modelines, mitigating the risk until the package is updated.

Conclusion

The discovery of CVE-2026-34982 in the Vim package highlights the importance of maintaining updated software to protect against security vulnerabilities. Users are strongly encouraged to update their Vim installations to the patched version to safeguard their systems.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2026-34982 is a security vulnerability in the Vim text editor that allows for arbitrary command execution through a modeline sandbox bypass.

You can check if your version of Vim is affected by comparing it with the fixed version 2:8.2.2637-23.el9_7.3 or by using tools like Vulert to monitor for vulnerabilities.

Modelines are special lines in Vim that allow users to set editor options within the text files. They can be a source of security risks if not handled properly.

If you cannot update Vim immediately, you can disable modelines by adding 'set nomodeline' to your Vim configuration file to mitigate the risk.

Vulert monitors and alerts for open-source vulnerabilities in software using just a manifest file like package-lock.json, allowing users to stay informed about potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:8.2.2637-23.el9_7.3

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