CVEfocus › CVE database › CVE-2018-15501

CVE-2018-15501

CVSS 7.5 HighEPSS 4.4% (higher than 91% of CVEs)Published 2018-08-18Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

24Fixed
3Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libgit2Not affected
vulnerable_code_not_present
Ubuntu 25.10libgit2Not affected
vulnerable_code_not_present
Ubuntu 24.04libgit2Not affected
vulnerable_code_not_present
Ubuntu 18.04libgit2Fix pending0.26.0+dfsg.1-1.1ubuntu0.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2018-15501
Ubuntu 16.04libgit2Fix pending0.24.1-2ubuntu0.2+esm3 (Ubuntu Pro)UBUNTU-CVE-2018-15501
Ubuntu 14.04libgit2Fix pending0.19.0-2ubuntu0.4+esm2 (Ubuntu Pro)UBUNTU-CVE-2018-15501
Debian 14libgit2Fixed0.27.4+dfsg.1-0.1DEBIAN-CVE-2018-15501
Debian 13libgit2Fixed0.27.4+dfsg.1-0.1DEBIAN-CVE-2018-15501
Debian 12libgit2Fixed0.27.4+dfsg.1-0.1DEBIAN-CVE-2018-15501
Red Hat Enterprise Linux 8libgit2Not affected
Red Hat Enterprise Linux 8libgit2-develNot affected
Alpine Linux 3.24libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.23libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.22libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.21libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.20libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.19libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.18libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.17libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.16libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.16libgit2-1.1Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.15libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.15libgit2-1.1Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.14libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.14libgit2-1.0Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.13libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.13libgit2-1.0Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.12libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.11libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.10libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.10libgit2-0.27Fixed0.27.4-r0ALPINE-CVE-2018-15501
Alpine Linux 3.9libgit2Fixed0.27.4-r0ALPINE-CVE-2018-15501

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.