CVE-2018-15501
publishedlibgit2: out-of-bounds reads when processing smart-protocol ng packets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Debian | jessie | libgit2 | Advisory build | 0.21.1-3+deb8u1 | DLA-1477-1 |
| SUSE / openSUSE | SLE-12-SP3 | libgit2-24x86_64 | Advisory build | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
| Ubuntu | bionic | libgit2 | Advisory build | 0.26.0+dfsg.1-1.1ubuntu0.2+esm2 | USN-8628-1 |
| Alpine Linux | v3.10 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.10 | libgit2-0.27 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.11 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
Show 32 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.13 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.13 | libgit2-1.0 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.14 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.14 | libgit2-1.0 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.15 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.15 | libgit2-1.1 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.16 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.16 | libgit2-1.1 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.17 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.18 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.19 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.20 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.21 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.22 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.23 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.24 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.9 | libgit2 | Fixed | 0.27.4-r0 | Package fix record |
| Debian | stretch | libgit2 | Advisory build | 0.25.1+really0.24.6-1+deb9u1 | DLA-2936-1 |
| SUSE / openSUSE | SLE-15 | libgit2-26aarch64 | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-26ppc64le | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-26s390x | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-26x86_64 | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-develaarch64 | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-develppc64le | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-devels390x | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SUSE / openSUSE | SLE-15 | libgit2-develx86_64 | Advisory build | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| Ubuntu | bionic | libgit2-26 | Advisory build | 0.26.0+dfsg.1-1.1ubuntu0.2+esm2 | USN-8628-1 |
| Ubuntu | trusty | libgit2 | Advisory build | 0.19.0-2ubuntu0.4+esm2 | USN-8628-1 |
| Ubuntu | trusty | libgit2-0 | Advisory build | 0.19.0-2ubuntu0.4+esm2 | USN-8628-1 |
| Ubuntu | xenial | libgit2 | Advisory build | 0.24.1-2ubuntu0.2+esm3 | USN-8628-1 |
| Ubuntu | xenial | libgit2-24 | Advisory build | 0.24.1-2ubuntu0.2+esm3 | USN-8628-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
8- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9406
- https://bugzilla.suse.com/show_bug.cgi?id=1104641
- https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649
- https://github.com/libgit2/libgit2/releases/tag/v0.26.6
- https://github.com/libgit2/libgit2/releases/tag/v0.27.4
- [debian-lts-announce] 20180825 [SECURITY] [DLA 1477-1] libgit2 security update https://lists.debian.org/debian-lts-announce/2018/08/msg00024.html
- [debian-lts-announce] 20220321 [SECURITY] [DLA 2936-1] libgit2 security update https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html
- https://www.pro-linux.de/sicherheit/2/44650/denial-of-service-in-libgit2.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 403153aa7458de00d29ab121480ba3b8608467d01b4d10732d2f4fcf500699c0
- Ingested
- 23 Sep 2026, 07:43:47 UTC
- Source record
- Official CVE record