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


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.12% (47th 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-2988714
  • published22 Aug 2022
  • disclosed16 Aug 2022
  • creditjanette88

Introduced: 16 Aug 2022

CVE-2022-2889  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.0.0225 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the skipwhite_and_linebreak() function in eval.c.

PoC:

vim9s
export fu C()
endf
def C0(l: list<string>)
enddef
try
0
0->(0
->a.0(
->u

References

CVSS Scores

version 3.1