CVE-2025-55157
JSON

6.9medium

Vim heap use-after-free vulnerability when processing recursive tuple data types

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.42% (higher than 38% 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.1400, When processing nested tuples in Vim script, an error during evaluation can trigger a use-after-free in Vim’s internal tuple reference management. Specifically, the tuple_unref() function may access already freed memory due to improper lifetime handling, leading to memory corruption. The exploit requires direct user interaction, as the script must be explicitly executed within Vim. This issue has been patched in version 9.1.1400.

Affected

Product or packageVersionsReported by
vim vim>= 9.1.1231, < 9.1.1400, from 9.1.1231 before 9.1.1400CVE 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-416

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.1400, When processing nested tuples in Vim script, an error during evaluation can trigger a use-after-free in Vim’s internal tuple reference management. Specifically, the tuple_unref() function may access already freed memory due to improper lifetime handling, leading to memory corruption. The exploit requires direct user interaction, as the script must be explicitly executed within Vim. This issue has been patched in version 9.1.1400.

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.1400, al procesar tuplas anidadas en un script de Vim, un error durante la evaluación podía provocar un error de use after free en la gestión interna de referencias de tuplas de Vim. En concreto, la función tuple_unref() podía acceder a memoria ya liberada debido a una gestión incorrecta del tiempo de vida, lo que provocaba corrupción de memoria. Este exploit requiere la interacción directa del usuario, ya que el script debe ejecutarse explícitamente en Vim. Este problema se ha corregido en la versión 9.1.1400.

References

Sources

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