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.
{
"unresolved_ranges": [
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "8.0"
}
],
"cpe": "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
},
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "9.0"
}
],
"cpe": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
}
]
}{
"source": [
"CPE_FIELD",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.26.6"
},
{
"introduced": "0.27.0"
},
{
"fixed": "0.27.4"
}
],
"cpe": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*"
}[
{
"target": {
"function": "ng_pkt",
"file": "src/transports/smart_pkt.c"
},
"source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
"deprecated": false,
"digest": {
"length": 908.0,
"function_hash": "138826696511010238732541932636188295741"
},
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2018-15501-606741fe"
},
{
"target": {
"file": "src/transports/smart_pkt.c"
},
"source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"277944573312571448173291964358782886837",
"36280656565145144977492951188865350869",
"302331465101043077794962941694367824538",
"294618928152091666896038200414798230595",
"207907076655417259776009322911410236434",
"107580828438128948544648617943369281976",
"302059678418441467271694324972509664904",
"329815054368941535576649484587697607592",
"83354471640335339165381725665650886157",
"20275277051791725878689896175251433783"
]
},
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2018-15501-cee72982"
}
]
"2026-04-11T18:43:50Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15501.json"