Integer Overflow or Wraparound Affecting libgit2 package, versions <0.27.0+dfsg.1-0.6


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.43% (73rd 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-ECHOLATEST-LIBGIT2-18477678
  • published31 Jul 2026
  • disclosed14 Mar 2018

Introduced: 14 Mar 2018

CVE-2018-8098  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Echo:latest libgit2 to version 0.27.0+dfsg.1-0.6 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 Echo. See How to fix? for Echo:latest relevant fixed versions and status.

Integer overflow in the index.c:read_entry() function while decompressing a compressed prefix length in libgit2 before v0.26.2 allows an attacker to cause a denial of service (out-of-bounds read) via a crafted repository index file.

CVSS Base Scores

version 3.1