Skip to main content
No exploitation reportedFix available

CVE-2018-15501

No exploitation reported by the sources we read.

  • Published2018-08-18
  • Fixed in0.27.4 · 0.26.6
  • WeaknessCWE-125

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2018-08-1802:29CVE publishedNVD

Versions per branch

NVD
Libgit2
BranchAffectedFixed in
0.27≥ 0.27.0, < 0.27.40.27.4
0.26< 0.26.60.26.6
Debian debian linux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libgit2Ubuntu:Pro:18.04:LTSall versions · fixed in 0.26.0+dfsg.1-1.1ubuntu0.2+esm2
  • libgit2Ubuntu:Pro:16.04:LTSall versions · fixed in 0.24.1-2ubuntu0.2+esm3
  • libgit2Ubuntu:Pro:14.04:LTSall versions · fixed in 0.19.0-2ubuntu0.4+esm2
  • libgit2SUSE:Manager Server 3.2all versions · fixed in 0.24.1-7.6.1
  • libgit2SUSE:Manager Server 3.1all versions · fixed in 0.24.1-7.6.1
  • libgit2SUSE:Linux Enterprise Software Development Kit 12 SP3all versions · fixed in 0.24.1-7.6.1
  • libgit2SUSE:Linux Enterprise Module for Development Tools 15all versions · fixed in 0.26.6-3.5.2
  • libgit2Debian:14all versions · fixed in 0.27.4+dfsg.1-0.1

26 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-15501 Red Hat Product Security

    libgit2: out-of-bounds reads when processing smart-protocol ng packets

Full record on NVD

Fix

  1. Update Libgit2 to 0.27.4 · 0.26.6

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2018-08-18
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-432h-4cw6-prpw

Frequently asked questions

What is CVE-2018-15501?

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.

Is CVE-2018-15501 actively exploited?

Active exploitation of CVE-2018-15501 has not been confirmed. Its EPSS score was 4.4% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-15501?

CVE-2018-15501 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running libgit2? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record