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


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.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-2840632
  • published20 May 2022
  • disclosed19 May 2022
  • creditTDHX ICS Security

Introduced: 19 May 2022

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

How to fix?

Upgrade vim/vim to version 8.2.4979 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the find_pattern_in_path function.

PoC

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

CVSS Scores

version 3.1