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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-08-11T22:54:27.302Z
- Modified: 2026-06-17T09:41:22.320Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- vim vim: >= 9.1.1231, < 9.1.1400; from 9.1.1231 before 9.1.1400

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-3r4f-mm4w-wgg6> (vendor-advisory)
- <https://github.com/vim/vim/commit/1307743697bbc46e1518abfea7f89caa95bcaf97> (patch)
- <https://github.com/vim/vim/releases/tag/v9.1.1400> (patch)

## Sources

- CVE List: [CVE-2025-55157](https://www.cve.org/CVERecord?id=CVE-2025-55157), CVE Terms of Use, modified 2025-08-12
- NVD: [CVE-2025-55157](https://nvd.nist.gov/vuln/detail/CVE-2025-55157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-55157 · Whole record: https://cve.day/CVE-2025-55157.json · Rebuilt by cve.day 2026-11-25T22:59:02.287Z
