Double-Free Vulnerability in Vim Command Line Text Editor
CVE-2025-55158
6.9MEDIUM
What is CVE-2025-55158?
Vim, an open source command line text editor, has a double-free vulnerability in versions from 9.1.1231 to before 9.1.1406. This flaw occurs when the editor processes nested tuples during Vim9 script import operations. An error during the evaluation can lead to a scenario where the clear_tv() function attempts to deallocate memory that has already been freed. This improper management of the internal typed value (typval_T) can be misused if a user opens and executes a specially crafted Vim script. The issue has been addressed in version 9.1.1406.
Affected Version(s)
vim >= 9.1.1231, < 9.1.1406