Improper Link Resolution Before File Access Affecting nodegit package, versions <0.26.3


0.0
high

Snyk CVSS

    Attack Complexity High
    Scope Changed
    Integrity High
    Availability High

    Threat Intelligence

    Exploit Maturity Mature
    EPSS 5.58% (94th percentile)
Expand this section
NVD
8.8 high
Expand this section
SUSE
0 info

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-JS-NODEGIT-542723
  • published 7 Jan 2020
  • disclosed 10 Dec 2019
  • credit Unknown

How to fix?

Upgrade nodegit to version 0.26.3 or higher.

Overview

nodegit is a Node bindings to the libgit2 project.

Affected versions of this package are vulnerable to Improper Link Resolution Before File Access. Filenames on Linux/Unix can contain backslashes. On Windows, backslashes are directory separators. Git did not use to refuse to write out tracked files with such filenames.

The exploit uses backslashes in the file names stored in tree objects, allowing arbitrary files even outside of the Git worktree to be over-written.

Note: This is a Windows-only vulnerability.