Heap Buffer Overflow in Vim Due to Inadequate Visual Mode Handling
CVE-2025-22134
4.2MEDIUM
What is CVE-2025-22134?
An issue in the Vim editor allows for a heap buffer overflow when users switch to other buffers while visual mode remains active. This occurs due to Vim not properly terminating visual mode before opening new windows and buffers. It may lead to unauthorized memory access, especially if the command ':all' is executed with visual mode enabled. The integrity of user data could be compromised in this scenario. However, this vulnerability has been addressed in Patch 9.1.1003, which ensures that visual mode resets correctly and verifies buffer line limits before attempting access.
Affected Version(s)
vim < v9.1.1003