In ngpkt in transports/smartpkt.c in libgit2 before 0.26.6 and 0.27.x before 0.27.4, a remote attacker can send a crafted smart-protocol "ng" packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.
[
{
"signature_version": "v1",
"target": {
"function": "ng_pkt",
"file": "src/transports/smart_pkt.c"
},
"source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
"digest": {
"length": 908.0,
"function_hash": "138826696511010238732541932636188295741"
},
"deprecated": false,
"id": "CVE-2018-15501-606741fe",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "src/transports/smart_pkt.c"
},
"source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
"digest": {
"line_hashes": [
"277944573312571448173291964358782886837",
"36280656565145144977492951188865350869",
"302331465101043077794962941694367824538",
"294618928152091666896038200414798230595",
"207907076655417259776009322911410236434",
"107580828438128948544648617943369281976",
"302059678418441467271694324972509664904",
"329815054368941535576649484587697607592",
"83354471640335339165381725665650886157",
"20275277051791725878689896175251433783"
],
"threshold": 0.9
},
"deprecated": false,
"id": "CVE-2018-15501-cee72982",
"signature_type": "Line"
}
]