Arbitrary Code Execution Vulnerability in Vim Packages
Summary
ALSA-2026:5602: Moderate: vim security update. Affects vim-X11 versions < 2:8.2.2637-23.el9_7.1. Fixed in 2:8.2.2637-23.el9_7.1. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Vim (Vi IMproved) is a highly configurable text editor built to enable efficient text editing. It is an enhanced version of the original vi editor and is widely used for programming and general text manipulation. The affected packages include vim-X11, vim-common, vim-enhanced, vim-filesystem, and vim-minimal, all of which are part of the AlmaLinux 9 ecosystem. These packages provide various functionalities, including graphical interface support, common files, enhanced features, and minimal installations of Vim.
Vulnerability Detail
The vulnerability identified as CVE-2026-25749 allows for arbitrary code execution through improper processing of the 'helpfile' option in Vim. This issue arises from the way Vim handles certain user inputs, which can be exploited by an attacker to execute malicious code on the affected system. The ramifications of this vulnerability can be severe, potentially leading to unauthorized access and control over the system, data breaches, or further exploitation of networked systems.
How To Fix
Minimum fixed version
2:8.2.2637-23.el9_7.1
This is the first release that contains the fix.
sudo dnf update vim-X11
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 the 'helpfile' option in Vim until they are able to update to the patched version. This can be done by adding the following line to the Vim configuration file: 'set nohelpfile'. However, this is not a permanent solution and updating the package is strongly recommended.
Conclusion
The Vim security update addresses a critical vulnerability that could allow arbitrary code execution through the 'helpfile' option. Users are strongly advised to update their Vim packages to the latest version to mitigate the risks associated with this vulnerability. Temporary workarounds are available, but updating is the best course of action.
See every vulnerability recorded for vim-X11 →
FAQ
CVE-2026-25749 is a security vulnerability in Vim that allows for arbitrary code execution via improper handling of the 'helpfile' option.
If you are using Vim versions prior to 2:8.2.2637-23.el9_7.1, your installation is vulnerable. You can check your version by running 'vim --version' in the terminal.
The risks include unauthorized code execution, potential data breaches, and the ability for attackers to gain control over the affected system.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json. You can check your application for vulnerabilities without needing to install anything.
More details can be found on the CVE page for CVE-2026-25749, which includes information about the impact, CVSS score, and acknowledgments.
Related vulnerabilities
Recent vulnerabilities recorded for vim-X11.