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.
{ "vanir_signatures": [ { "id": "CVE-2018-8098-29acfe81", "signature_type": "Line", "target": { "file": "src/index.c" }, "source": "https://github.com/libgit2/libgit2/commit/3207ddb0103543da8ad2139ec6539f590f9900c1", "digest": { "threshold": 0.9, "line_hashes": [ "135896982973916903305795107330050348358", "184939043377130665668669129652211017347", "307748016171779875675699727869171429237", "241739025222590407109663724768545593759", "23267720098037586023124815692439880216", "24661678461091087705214163136838974316", "90907465384696908184435450087934824448", "277379174238028553344217817776980333730", "119481454443235298950043312408905204454", "229678914226100167683291621348395190622", "255372000690676535671072658154186099275", "165531933752734538812548705048040921207" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2018-8098-eb1d4f8c", "signature_type": "Function", "target": { "file": "src/index.c", "function": "read_entry" }, "source": "https://github.com/libgit2/libgit2/commit/3207ddb0103543da8ad2139ec6539f590f9900c1", "digest": { "function_hash": "109719023837396517359196467765305835058", "length": 2411.0 }, "deprecated": false, "signature_version": "v1" } ] }