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

Published Aug 11, 2025
·
Updated

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

2 affected components
vim Vim>=9.1.1231<9.1.1400
vim Vim>=9.1.1231<9.1.1400

Event History

Aug 11, 2025
CVE Published
via MITRE·10:54 PM
Data Sourced
via MITRE·10:54 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2025-55157?

To fix CVE-2025-55157, upgrade Vim to version 9.1.1400 or later.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203