Incorrect Calculation of Buffer Size in Vim - #VU145884

 

Incorrect Calculation of Buffer Size in Vim - #VU145884

Published: August 27, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to an incorrect calculation of buffer size in unserialize_uep() in src/undo.c when reading a crafted persistent undo file. A remote attacker can supply a specially crafted undo file to cause a denial of service.

Only 32-bit builds are vulnerable. The issue can be triggered either explicitly with :rundo or automatically when the 'undofile' option is enabled and a matching undo file is found for the edited file.


Affected software

Vim

Remediation

Install security update from vendor's website.

Vim - update to 9.2.1014

External References

Related Security Bulletins