# CVE-2025-55158: Vim double-free vulnerability during Vim9 script import operations

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-11 · Modified: 2025-08-12
- Aliases: UBUNTU-CVE-2025-55158
- Record: https://cvemate.com/vulnerability/CVE-2025-55158 · JSON: https://cvemate.com/vulnerability/CVE-2025-55158/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.435%, percentile 39.586%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu vim (Ubuntu): All versions (No fix recorded)
- vim vim: ≥ 9.1.1231, \< 9.1.1406

## References

- <https://github.com/vim/vim/security/advisories/GHSA-5fg8-wvx3-583x>
- <https://github.com/vim/vim/commit/9772025d24e939fd84b85748ce35c26874c05775>
- <https://github.com/vim/vim/releases/tag/v9.1.1406>
- <https://ubuntu.com/security/CVE-2025-55158>
- <https://www.cve.org/CVERecord?id=CVE-2025-55158>

---

Data as of 2026-12-05T04:39:30.636Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
