CVE-2025-55157

Name
CVE-2025-55157
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/vim/vim/commit/1307743697bbc46e1518abfea7f89caa95bcaf97
MISC https://github.com/vim/vim/releases/tag/v9.1.1400
CONFIRM https://github.com/vim/vim/security/advisories/GHSA-3r4f-mm4w-wgg6

Match rules

CPE URI Source package Min version Max version
vim >= 9.1.1231 < 9.1.1400

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
vim edge-main 9.1.1397-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
vim edge-main 9.1.1379-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable