Double Free Affecting libgit2 package, versions <0.26.0+dfsg.1-1.1ubuntu0.2+esm2


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.39% (72nd 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-UBUNTU1804-LIBGIT2-309015
  • published14 Mar 2018
  • disclosed14 Mar 2018

Introduced: 14 Mar 2018

CVE-2018-8099  (opens in a new tab)
CWE-415  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 libgit2 to version 0.26.0+dfsg.1-1.1ubuntu0.2+esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libgit2 package and not the libgit2 package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.

CVSS Base Scores

version 3.1