Out-of-bounds Write Affecting vim/vim package, versions [,8.2.4977)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (25th 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-2840633
  • published20 May 2022
  • disclosed19 May 2022
  • creditTDHX ICS Security

Introduced: 19 May 2022

CVE-2022-1785  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 8.2.4977 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the vim_regsub_both function.

PoC

./vim -u NONE -i NONE -n -m -X -Z -e -s -S /mnt/share/max/fuzz/poc/vim/poc_obw_s.dat -c :qa!

CVSS Scores

version 3.1