CVE-2025-55157

NameCVE-2025-55157
DescriptionVim 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
vim (PTS)bullseye2:8.2.2434-3+deb11u1fixed
bullseye (security)2:8.2.2434-3+deb11u3fixed
bookworm2:9.0.1378-2+deb12u2fixed
forky, sid, trixie2:9.1.1230-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
vimsource(unstable)(not affected)

Notes

- vim <not-affected> (Vulnerable code introduced later)
https://github.com/vim/vim/security/advisories/GHSA-3r4f-mm4w-wgg6
Introduced with: https://github.com/vim/vim/commit/9cb865e95bba333fa7b47c39c2729c125b911e36 (v9.1.1232)
Fixed by: https://github.com/vim/vim/commit/1307743697bbc46e1518abfea7f89caa95bcaf97 (v9.1.1400)

Search for package or bug name: Reporting problems