Use After Free Affecting vim/vim package, versions [9.1.1231,9.1.1400)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-VIMVIM-11965275
  • published19 Aug 2025
  • disclosed11 Aug 2025
  • creditYang Luo, Yanju Chen

Introduced: 11 Aug 2025

NewCVE-2025-55157  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.1.1400 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via the tuple_unref function when handling nested tuples during script evaluation. An attacker can cause memory corruption or potentially execute arbitrary code by convincing a user to execute a specially crafted script within the application.

Note: This is exploitable if the user explicitly runs a malicious script.

CVSS Base Scores

version 4.0
version 3.1