BreachSpiderVerified, not vibes

CVE-2025-55157 in Vim

High 8.8 Fix available

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 tuple_unref() function may access already freed memory du...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
CVSS v46.9
EPSS0.8%
EPSS percentile54th
FixAvailable

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

VendorProductAffected versions
Vim Vim ≥ 9.1.1231, < 9.1.1400

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-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-55157
BreachSpider IDBS-2025-GLOBAL-276286-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2025-08-11
Last modified2025-08-12
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

Vim versions 9.1.1231 to before 9.1.1400 are vulnerable to a use-after-free vulnerability in the tuple_unref() function when processing nested tuples in Vim script, leading to memory corruption.

An attacker can exploit this vulnerability by crafting a specific Vim script that triggers the improper handling of tuple references, potentially leading to arbitrary code execution.

Questions

What is CVE-2025-55157?

Vim versions 9.1.1231 to before 9.1.1400 are vulnerable to a use-after-free vulnerability in the tuple_unref() function when processing nested tuples in Vim script, leading to memory corruption.

What is the CVSS score for CVE-2025-55157?

CVE-2025-55157 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-55157 actively exploited?

No confirmed active exploitation of CVE-2025-55157 as of 2026-05-30.

How do I remediate CVE-2025-55157?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2025-55157?

CVE-2025-55157 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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-08-12.