Improper Input Validation Affecting libgit2/libgit2 package, versions [,0.28.4)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
5.24% (93rd 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-LIBGIT2LIBGIT2-2366301
  • published26 Jan 2022
  • disclosed27 Apr 2020
  • creditUnknown

Introduced: 27 Apr 2020

CVE-2020-12278  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade libgit2/libgit2 to version 0.28.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation. An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. path.c mishandles equivalent filenames that exist because of NTFS Alternate Data Streams. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1352.

CVSS Base Scores

version 3.1