Double Free Affecting vim/vim package, versions [,9.1.0647)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (15th 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-7577999
  • published 2 Aug 2024
  • disclosed 1 Aug 2024
  • credit Suyue Guo

How to fix?

Upgrade vim/vim to version 9.1.0647 or higher.

Overview

Affected versions of this package are vulnerable to Double Free due to the improper handling of memory in the tagstack data structure. An attacker can cause a crash of the application by manipulating the quickfix list after a window closure, leading to a double-free scenario.

Note:

This is only exploitable if the user executes Vim with several non-default flags.

PoC

/home/vim-debug/src/vim -u NONE -X -Z -e -s -S double_free -c ':qa!'

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
4.6 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Active
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None