6.9medium
Vim double-free vulnerability during Vim9 script import operations
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Vim is an open source, command line text editor. In versions from 9.1.1231 to before 9.1.1406, when processing nested tuples during Vim9 script import operations, an error during evaluation can trigger a double-free in Vim’s internal typed value (typval_T) management. Specifically, the clear_tv() function may attempt to free memory that has already been deallocated, due to improper lifetime handling in the handle_import / ex_import code paths. The vulnerability can only be triggered if a user explicitly opens and executes a specially crafted Vim script. This issue has been patched in version 9.1.1406.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vim vim | >= 9.1.1231, < 9.1.1406, from 9.1.1231 before 9.1.1406 | CVE List, NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Vim is an open source, command line text editor. In versions from 9.1.1231 to before 9.1.1406, when processing nested tuples during Vim9 script import operations, an error during evaluation can trigger a double-free in Vim’s internal typed value (typval_T) management. Specifically, the clear_tv() function may attempt to free memory that has already been deallocated, due to improper lifetime handling in the handle_import / ex_import code paths. The vulnerability can only be triggered if a user explicitly opens and executes a specially crafted Vim script. This issue has been patched in version 9.1.1406.
NVD (es)
Vim es un editor de texto de línea de comandos de código abierto. En versiones desde la 9.1.1231 hasta anteriores a la 9.1.1406, al procesar tuplas anidadas durante las operaciones de importación de scripts de Vim9, un error durante la evaluación puede provocar una doble liberación en la gestión interna de valores tipificados (typval_T) de Vim. En concreto, la función clear_tv() puede intentar liberar memoria ya desasignada debido a una gestión incorrecta del tiempo de vida en las rutas de código handle_import / ex_import. La vulnerabilidad solo se activa si un usuario abre y ejecuta explícitamente un script de Vim especialmente manipulado. Este problema se ha corregido en la versión 9.1.1406.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-55158 changed 2025-08-12 | CVE Terms of Use |
| NVD | CVE-2025-55158 changed 2026-06-17 | Public domain |