# CVE-2025-55157: Vim heap use-after-free vulnerability when processing recursive tuple data types

- 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-55157
- Record: https://cvemate.com/vulnerability/CVE-2025-55157 · JSON: https://cvemate.com/vulnerability/CVE-2025-55157/json

## Description

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

## 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.423%, percentile 38.557%, 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.1400

## References

- <https://github.com/vim/vim/security/advisories/GHSA-3r4f-mm4w-wgg6>
- <https://github.com/vim/vim/commit/1307743697bbc46e1518abfea7f89caa95bcaf97>
- <https://github.com/vim/vim/releases/tag/v9.1.1400>
- <https://ubuntu.com/security/CVE-2025-55157>
- <https://www.cve.org/CVERecord?id=CVE-2025-55157>

---

Data as of 2026-12-05T04:24:10.409Z. 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
