CVE-2025-22134

Published
View on NVD ↗
CVSS v3
4.2
MEDIUM
CVSS v2
N/A
Affected
2
PROJECTS

Description

When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won't try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003

The official Vim repository
GitHubGitHub
40.6K
Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. Vim is often called a programmer's editor, and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files. ## Features * **Vim**: Vim terminal(CLI) application can be used from Powershell and Command Prompt. * **GVim**: The GUI version of Vim provides full featured Windows GUI application experience. * **Terminal Integration**: Batch files are created to provide `vim`, `gvim`, `evim`, `view`, `gview`, `vimdiff`, `gvimdiff` and `vimtutor` command on terminal use. * **Shell Integration**: Vim is added in `Open with ...` context menu. And by default `Edit with Vim` context menu is created to open files whose extensions are associated with other applications. ## Package parameters - `/InstallDir` - Override the installation directory. By default, the software is installed in `$ChocolateyToolsLocation`, it's default value is `C:\tools`. You can include spaces. See the example below. - `/RestartExplorer` - Restart Explorer to unlock `GVimExt.dll` used for `Edit with Vim` context menu feature. - `/NoDefaultVimrc` - Don't create default `_vimrc` file. - `/NoContextmenu` - Don't create `Edit with Vim` context menu. - `/NoDesktopShortcuts` - Don't create shortcuts on the desktop. Example: `choco install vim --params "'/NoDesktopShortcuts /InstallDir:C:\path\to\your dir'"` ## Notes - **Antivirus Detections**. Some files in the package are being picked up by VirusTotal as malicious. Please see these [GitHub issues](https://github.com/vim/vim-win32-installer/issues?q=is%3Aissue+is%3Aclosed+virus) for more information. - This package uses the ZIP build to install to provide installation parameters. - All compilation of the software is automated and performed on Appveyor. The building status is open. - This package provides an official build. Similar package `vim-tux` is from a well-known unofficial vim building project. Unlike `vim-tux`, this package can take some installation parameters. - **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.**
ChocolateyChocolatey