HighFix available
libgit2 — security advisory
In ng_pkt in transports/smart_pkt.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.
- Products
- libgit2
- Affected versions
- Not specified
- Fixed versions
- 0.27.4-r0
- CVEs
- CVE-2018-15501
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 21:58 UTC · Revision 1
Source evidence
In ng_pkt in transports/smart_pkt.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.
osv:ALPINE-CVE-2018-15501
libgit2
Fixed versions: 0.27.4-r0
libgit2
Fixed versions: 0.27.4-r0
libgit2
Fixed versions: 0.27.4-r0
Complete source record
{
"id": "d6df60b4492f347738f9f88f2fef3335edfdb118404cd3fa1b0072642400bccb",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2018-15501",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2018-15501",
"summary": "In ng_pkt in transports/smart_pkt.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.",
"evidence": "osv:ALPINE-CVE-2018-15501",
"products": [
{
"name": {
"value": "libgit2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.27.4-r0",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libgit2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.27.4-r0",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libgit2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.27.4-r0",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2018-15501",
"aliases": [
"ALPINE-CVE-2018-15501"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.27.0"
},
{
"fixed": "0.27.4-r0"
}
]
}
],
"package": {
"name": "libgit2",
"purl": "pkg:apk/alpine/libgit2?arch=source",
"ecosystem": "Alpine:v3.10"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-15501.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.27.0"
},
{
"fixed": "0.27.4-r0"
}
]
}
],
"package": {
"name": "libgit2",
"purl": "pkg:apk/alpine/libgit2?arch=source",
"ecosystem": "Alpine:v3.11"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-15501.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.27.0"
},
{
"fixed": "0.27.4-r0"
}
]
}
],
"package": {
"name": "libgit2",
"purl": "pkg:apk/alpine/libgit2?arch=source",
"ecosystem": "Alpine:v3.9"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-15501.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-23T17:17:55.221001966Z",
"provider": "osv",
"upstream": [
"CVE-2018-15501"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2018-15501"
]
},
"related_cves": [
{
"value": "CVE-2018-15501",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 415062,
"published_at": "2018-08-18T02:29:01.713+00:00"
}