Heap-based Buffer Overflow Affecting vim/vim package, versions [,9.1.0688)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th 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 ID SNYK-UNMANAGED-VIMVIM-7814180
  • published 23 Aug 2024
  • disclosed 22 Aug 2024
  • credit SuyueGuo

How to fix?

Upgrade vim/vim to version 9.1.0688 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow due to the improper handling of search patterns containing ASCII NUL characters in a specific configuration. An attacker can read beyond the buffer limits by manipulating the search pattern when certain settings (:set shm+=S and :set rl) are enabled.

Note: This requires the search count functionality to be off and at the same time :set rightleft must have been used.

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
2 low
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None