CVE-2025-55158
JSON

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 packageVersionsReported by
vim vim>= 9.1.1231, < 9.1.1406, from 9.1.1231 before 9.1.1406CVE List, NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-415

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

SourceRecordLicence
CVE ListCVE-2025-55158 changed 2025-08-12CVE Terms of Use
NVDCVE-2025-55158 changed 2026-06-17Public domain