CVE-2025-55158: Vim double-free vulnerability during Vim9 script import operations

Published Aug 11, 2025
·
Updated

Vim is an open source, command line text editor. In versions from 9.1.1231 to before 9.1.1406, when processing nested tuples during Vim9 script import operations, an error during evaluation can trigger a double-free in Vim’s internal typed value (typvalT) management. Specifically, the cleartv() function may attempt to free memory that has already been deallocated, due to improper lifetime handling in the handleimport / eximport code paths. The vulnerability can only be triggered if a user explicitly opens and executes a specially crafted Vim script. This issue has been patched in version 9.1.1406.

Affected Software

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

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
Jul 29, 57584
Event
via NVD·04:48 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-55158?

CVE-2025-55158 has been classified as a high-severity vulnerability due to its potential to cause significant disruption through double-free errors.

2

How do I fix CVE-2025-55158?

To fix CVE-2025-55158, users should upgrade their Vim installation to version 9.1.1406 or later.

3

Which versions of Vim are affected by CVE-2025-55158?

CVE-2025-55158 affects Vim versions from 9.1.1231 to before 9.1.1406.

4

What type of vulnerability is CVE-2025-55158?

CVE-2025-55158 is a memory management vulnerability that results from double-free errors during Vim9 script import operations.

5

What are the risks associated with CVE-2025-55158?

Exploitation of CVE-2025-55158 can lead to application crashes, data corruption, or potentially remote code execution.

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