CVE-2025-55158 in Vim
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 (typval_T) management. Specifically, the clear_tv() function may attemp...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Vim | Vim | ≥ 9.1.1231, < 9.1.1406 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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 (typval_T) management. Specifically, the clear_tv() function may attempt to free memory that has already been deallocated, due to improper lifetime handling in the handle_import / ex_import 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-55158 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-037108-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2025-08-11 |
| Last modified | 2025-08-12 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-415: CWE-415
Analysis AI-written, not human-reviewed
Vim versions from 9.1.1231 to before 9.1.1406 are vulnerable to a double-free vulnerability in the clear_tv() function during the processing of nested tuples in Vim9 script import operations, leading to potential memory corruption.
An attacker could exploit this vulnerability by crafting a malicious Vim9 script that triggers the double-free condition, potentially leading to arbitrary code execution or denial of service.
Questions
What is CVE-2025-55158?
Vim versions from 9.1.1231 to before 9.1.1406 are vulnerable to a double-free vulnerability in the clear_tv() function during the processing of nested tuples in Vim9 script import operations, leading to potential memory corruption.
What is the CVSS score for CVE-2025-55158?
CVE-2025-55158 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.8%.
Is CVE-2025-55158 actively exploited?
No confirmed active exploitation of CVE-2025-55158 as of 2026-05-30.
How do I remediate CVE-2025-55158?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2025-55158?
CVE-2025-55158 affects Vim Vim.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Vim","product":"Vim","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-08-12.