Undefined Behavior for Input to API Affecting vim/vim package, versions [,9.0.0101)


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-2978251
  • published10 Aug 2022
  • disclosed1 Aug 2022
  • creditabysslab

Introduced: 1 Aug 2022

CVE-2022-2598  (opens in a new tab)
CWE-475  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.0.0101 or higher.

Overview

Affected versions of this package are vulnerable to Undefined Behavior for Input to API due to an invalid memory access in diff mode with dp and undo

PoC:

echo -ne bm9ybTpzZSBkAQ0KbjAKZTAwCnNhfG5vMCB1dWRwTwN1bzAbZ2cKc2lsIW5vcm0wMEow | base64 -d >> mini.poc```

CVSS Scores

version 3.1