Out-of-bounds Read Affecting libgit2 package, versions <0.26.0+dfsg.1-1.1ubuntu0.2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.45% (75th 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-308951
  • published11 Jul 2018
  • disclosed10 Jul 2018

Introduced: 10 Jul 2018

CVE-2018-10887  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-681  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 libgit2 to version 0.26.0+dfsg.1-1.1ubuntu0.2 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.

A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service.

CVSS Scores

version 3.1