Out-of-bounds Read Affecting vim/vim package, versions [,9.0.0212)


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 IDSNYK-UNMANAGED-VIMVIM-2987130
  • published18 Aug 2022
  • disclosed16 Aug 2022
  • creditjanette88

Introduced: 16 Aug 2022

CVE-2022-2816  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.0.0212 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the check_vim9_unlet() function in src/vim9cmds.c.

PoC:

def T()
writefile(s:0, '')
var i000rt0scri0t0lines =<< 000
000
writefile(i000rt0scri0t0lines, '')
unl
enddef
defc

References

CVSS Scores

version 3.1