Skip to content
Fencer Vulns
medium 6.5

CVE-2018-8099 json

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…

published 2018-03-14 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-19775

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 72%
public exploits
0
none known

Summary

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.

Patch / fix

  • libgit2 libgit2 0.26.2
  • libgit2 Debian 14, Debian 13, Debian 12 0.27.0+dfsg.1-0.6

debian advisories DEBIAN-CVE-2018-8099

  • libgit2 Ubuntu Pro 14.04 LTS 0.19.0-2ubuntu0.4+esm2
  • libgit2 Ubuntu Pro 16.04 LTS 0.24.1-2ubuntu0.2+esm3
  • libgit2 Ubuntu Pro 18.04 LTS 0.26.0+dfsg.1-1.1ubuntu0.2+esm2

ubuntu advisories UBUNTU-CVE-2018-8099

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libgit2 SLE Software Development Kit 12 SP3, Manager Server 3.2, Manager Server 3.1 0.24.1-7.6.1

suse advisories SUSE-SU-2018:3440-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-8099 updated cvss 4.3

libgit2: denial of service (DoS) via crafted repository index files

  • Red Hat Enterprise Linux 8 libgit2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.39% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.