CVE-2018-15501 json
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…
published 2018-08-18 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-7378
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.4%
- EPSS 4.4% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
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.
Patch / fix
- libgit2 libgit2 0.26.6, 0.27.4
- libgit2 Debian 14, Debian 13, Debian 12 0.27.4+dfsg.1-0.1
debian advisories DEBIAN-CVE-2018-15501
- libgit2 Ubuntu Pro 14.04 LTS 0.19.0-2ubuntu0.4+esm2
- libgit2 Ubuntu Pro 16.04 LTS 0.24.1-2ubuntu0.2+esm3
- libgit2 Ubuntu Pro 18.04 LTS 0.26.0+dfsg.1-1.1ubuntu0.2+esm2
ubuntu advisories UBUNTU-CVE-2018-15501
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libgit2 SLE Software Development Kit 12 SP3, Manager Server 3.2, Manager Server 3.1 0.24.1-7.6.1
- libgit2 SLE Module for Development Tools 15 0.26.6-3.5.2
suse advisories SUSE-SU-2018:3440-1SUSE-SU-2018:2469-1
- libgit2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +13 more 0.27.4-r0
- libgit2-1.0 Alpine 3.14, Alpine 3.13 0.27.4-r0
- libgit2-1.1 Alpine 3.16, Alpine 3.15 0.27.4-r0
- libgit2-0.27 Alpine 3.10 0.27.4-r0
alpine advisories ALPINE-CVE-2018-15501
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-15501 updated cvss 5.3
libgit2: out-of-bounds reads when processing smart-protocol ng packets
-
Red Hat Enterprise Linux 8 libgit2not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.37% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bugs.chromium.org https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9406 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649
patch, third-party-advisory
-
bugs.chromium.org
/p/oss-fuzz/issues/detail?id=9406
exploit, issue-tracking, patch, third-party-advisory
-
bugzilla.suse.com
/show_bug.cgi?id=1104641
issue-tracking, patch, third-party-advisory
-
github.com
/libgit2/libgit2/releases/tag/v0.27.4
release-notes, third-party-advisory
-
pro-linux.de
/sicherheit/2/44650/denial-of-service-in-libgit2.html
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/08/msg00024.html
mailing-list, third-party-advisory
-
github.com
/libgit2/libgit2/releases/tag/v0.26.6
release-notes, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/03/msg00031.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-15501
- NVD CVE-2018-15501
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.