CVE-2025-55157: Vim heap use-after-free vulnerability when processing recursive tuple data types
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 tupleunref() 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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2025-55157?
CVE-2025-55157 has been rated as a high severity vulnerability due to its potential to cause memory corruption.
How do I fix CVE-2025-55157?
To fix CVE-2025-55157, upgrade Vim to version 9.1.1400 or later.
What versions of Vim are affected by CVE-2025-55157?
Vim versions from 9.1.1231 to before 9.1.1400 are affected by CVE-2025-55157.
What type of vulnerability is CVE-2025-55157?
CVE-2025-55157 is a use-after-free vulnerability found in Vim's internal tuple reference management.
What are the potential impacts of CVE-2025-55157?
The potential impacts of CVE-2025-55157 include application crashes and arbitrary code execution due to memory corruption.