{"id":"UBUNTU-CVE-2018-8099","details":"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.","modified":"2026-04-22T13:21:13.195130Z","published":"2018-03-14T00:29:00Z","upstream":["CVE-2018-8099"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-8099"},{"type":"REPORT","url":"https://github.com/libgit2/libgit2/commit/58a6fe94cb851f71214dbefac3f9bffee437d6fe"},{"type":"REPORT","url":"https://libgit2.github.com/security/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-8099"}],"affected":[{"package":{"name":"libgit2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libgit2@0.19.0-2ubuntu0.4+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.19.0-2","0.19.0-2ubuntu0.4","0.19.0-2ubuntu0.4+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgit2-0","binary_version":"0.19.0-2ubuntu0.4+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-8099.json"}},{"package":{"name":"libgit2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libgit2@0.24.1-2ubuntu0.2+esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.22.2-2","0.23.1-1","0.24.1-2","0.24.1-2ubuntu0.2","0.24.1-2ubuntu0.2+esm1","0.24.1-2ubuntu0.2+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgit2-24","binary_version":"0.24.1-2ubuntu0.2+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-8099.json"}},{"package":{"name":"libgit2","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libgit2@0.26.0+dfsg.1-1.1ubuntu0.2+esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.25.1+really0.24.6-1","0.26.0+dfsg.1-1.1","0.26.0+dfsg.1-1.1build1","0.26.0+dfsg.1-1.1ubuntu0.2","0.26.0+dfsg.1-1.1ubuntu0.2+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgit2-26","binary_version":"0.26.0+dfsg.1-1.1ubuntu0.2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-8099.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}