Buffer underflow in Vim - #VU139257

 

Buffer underflow in Vim - #VU139257

Published: July 24, 2026


Vulnerability identifier: #VU139257
CSH Severity: Low
CVSS v4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-124
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Vim

Remediation

Install security update from vendor's website.

Vim - update to 9.2.0843

External References

Related Security Bulletins