CVE-2025-55157
Vim vulnerability analysis and mitigation

Overview

Vim, an open source command line text editor, was found to contain a use-after-free vulnerability (CVE-2025-55157) affecting versions from 9.1.1231 to before 9.1.1400. The vulnerability was discovered in the tuple data type processing functionality, which was introduced in version 9.1.1232. The issue occurs when processing nested tuples in Vim script, where an error during evaluation can trigger a use-after-free condition in Vim's internal tuple reference management (GitHub Advisory).

Technical details

The vulnerability specifically involves the tuple_unref() function, which may access already freed memory due to improper lifetime handling, leading to memory corruption. The issue was discovered through fuzz testing with AFL++ and confirmed using AddressSanitizer. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

While the primary impact is a potential denial-of-service through application crash, the underlying memory corruption could theoretically be leveraged for more severe consequences depending on the environment in which Vim is running. However, the exploit requires direct user interaction as the script must be explicitly executed within Vim (GitHub Advisory).

Exploitability

The vulnerability requires direct user interaction to be exploited, as the malicious script must be explicitly executed within Vim. The issue was discovered and reported by Yang Luo and Yanju Chen from the Security Team at Riema Labs (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Vim version 9.1.1400. Users are advised to upgrade to this version or later to mitigate the risk. The fix involves returning early in case of an error in the tuple evaluation process (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Vim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73078HIGH8.6
  • Vim logoVim
  • xxd
NoYesAug 11, 2026
CVE-2026-73077HIGH8.4
  • Vim logoVim
  • vim-data-common
NoYesAug 11, 2026
CVE-2026-43961HIGH7.8
  • Vim logoVim
  • vim-enhanced
NoYesAug 19, 2026
CVE-2026-73073HIGH7.1
  • Vim logoVim
  • cpe:2.3:a:vim:vim
NoYesAug 18, 2026
CVE-2026-19617MEDIUM5.5
  • Vim logoVim
  • vim-enhanced
NoNoAug 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management