Buffer underflow in Vim - #VU139257
Published: July 24, 2026
Vulnerability details
The vulnerability allows a remote attacker to read and modify memory outside the bounds of a heap array.
The vulnerability exists due to out-of-bounds write in popup_mark_opacity_zindex() in src/popupwin.c when processing Vim script-created popup windows with the "clipwindow", "opacity", and text property anchor options after the host window is scrolled so the anchor moves above the visible area. A remote attacker can trick the victim into running a crafted Vim script to read and modify memory outside the bounds of a heap array.
The issue is not reachable by opening a file alone, because a modeline cannot call functions.