Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-8098
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:34 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-8098
Complete source record
{
"id": "e27102a8728b3047cd49ad6ace73616ca2015993d85a0a963f46f9ba6195e8ec",
"url": "https://osv.dev/vulnerability/CVE-2018-8098",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-8098",
"summary": "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.",
"evidence": "osv:CVE-2018-8098",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-8098",
"aliases": [
"CVE-2018-8098"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libgit2/libgit2",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "dd2d5381773ca3f7bc31f56aea6fc067db5ea404"
},
{
"fixed": "3207ddb0103543da8ad2139ec6539f590f9900c1"
},
{
"fixed": "3db1af1f370295ad5355b8f64b865a2a357bcac0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.26.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "3207ddb0103543da8ad2139ec6539f590f9900c1"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "3db1af1f370295ad5355b8f64b865a2a357bcac0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.26.1",
"v0.26.0-rc2",
"v0.26.0",
"v0.27.0-rc1",
"v0.27.0-rc2",
"v0.26.0-rc1",
"v0.24.0",
"v0.24.0-rc1",
"v0.23.0",
"v0.23.0-rc2",
"v0.23.0-rc1",
"v0.22.0",
"v0.22.0-rc2",
"v0.22.0-rc1",
"v0.21.0",
"v0.18.0",
"v0.17.0",
"v0.16.0",
"v0.15.0",
"v0.14.0",
"v0.13.0",
"v0.12.0",
"v0.11.0",
"v0.10.0",
"v0.8.0",
"v0.3.0",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8098.json",
"vanir_signatures": [
{
"id": "CVE-2018-8098-29acfe81",
"digest": {
"threshold": 0.9,
"line_hashes": [
"135896982973916903305795107330050348358",
"184939043377130665668669129652211017347",
"307748016171779875675699727869171429237",
"241739025222590407109663724768545593759",
"23267720098037586023124815692439880216",
"24661678461091087705214163136838974316",
"90907465384696908184435450087934824448",
"277379174238028553344217817776980333730",
"119481454443235298950043312408905204454",
"229678914226100167683291621348395190622",
"255372000690676535671072658154186099275",
"165531933752734538812548705048040921207"
]
},
"source": "https://github.com/libgit2/libgit2/commit/3207ddb0103543da8ad2139ec6539f590f9900c1",
"target": {
"file": "src/index.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-8098-eb1d4f8c",
"digest": {
"length": 2411,
"function_hash": "109719023837396517359196467765305835058"
},
"source": "https://github.com/libgit2/libgit2/commit/3207ddb0103543da8ad2139ec6539f590f9900c1",
"target": {
"file": "src/index.c",
"function": "read_entry"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:54:06Z"
}
}
],
"modified": "2026-10-20T13:54:06.677130754Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html",
"https://github.com/libgit2/libgit2/commit/3207ddb0103543da8ad2139ec6539f590f9900c1",
"https://github.com/libgit2/libgit2/commit/3db1af1f370295ad5355b8f64b865a2a357bcac0",
"https://libgit2.github.com/security/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-8098",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388360,
"published_at": "2018-03-14T00:29:00.593+00:00"
}