Use After Free Affecting vim/vim package, versions [,9.0.2121)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.06% (29th 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-6083930
  • published30 Nov 2023
  • disclosed23 Nov 2023
  • creditgandalf4a

Introduced: 23 Nov 2023

CVE-2023-48706  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.0.2121 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free when executing a :s command for the first time and using a sub-replace-special atom inside the substitution part. An attacker can cause freeing of memory which may later then be accessed by the initial :s command by making a recursive :s call.

Note:

This is only exploitable if the user intentionally executes the payload and it seems to work only reliably for the very first :s command. It may also cause a crash.

CVSS Scores

version 3.1