Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-15501
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:27 UTC · Revision 1

Source evidence

CVE-2018-15501

core-osv · Original source

Published 18 Aug 2018, 02:29 UTC

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:CVE-2018-15501
Complete source record
{
  "id": "8b28a97aaa8d8bac27b07910aa6f7b5d939dfb385b7f674b9c9c5bbae0647492",
  "url": "https://osv.dev/vulnerability/CVE-2018-15501",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "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:CVE-2018-15501",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-15501",
      "aliases": [
        "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": [
            {
              "repo": "https://github.com/libgit2/libgit2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e98d0a37c93574d2c6107bf7f31140b548c6a7bf"
                },
                {
                  "introduced": "6311e886d8b5377c6037cd9937ccf66a71f3361d"
                },
                {
                  "fixed": "8b89f362a34fcccdf1c6c5f3445895b71d9c6d56"
                },
                {
                  "fixed": "1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.26.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.27.0"
                      },
                      {
                        "fixed": "0.27.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e98d0a37c93574d2c6107bf7f31140b548c6a7bf"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.26.6"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8b89f362a34fcccdf1c6c5f3445895b71d9c6d56"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.27.4"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.26.5",
            "v0.27.3",
            "v0.26.4",
            "v0.27.2",
            "v0.27.1",
            "v0.26.3",
            "v0.27.0",
            "v0.26.2",
            "v0.26.1",
            "v0.26.0-rc2",
            "v0.26.0",
            "v0.26.0-rc1",
            "v0.24.0",
            "v0.24.0-rc1",
            "v0.23.0",
            "v0.23.0-rc2",
            "v0.23.0-rc1",
            "v0.22.0",
            "v0.22.0-rc2",
            "v0.22.0-rc1",
            "v0.21.0",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.8.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15501.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-15501-606741fe",
                "digest": {
                  "length": 908,
                  "function_hash": "138826696511010238732541932636188295741"
                },
                "source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
                "target": {
                  "file": "src/transports/smart_pkt.c",
                  "function": "ng_pkt"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-15501-cee72982",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "277944573312571448173291964358782886837",
                    "36280656565145144977492951188865350869",
                    "302331465101043077794962941694367824538",
                    "294618928152091666896038200414798230595",
                    "207907076655417259776009322911410236434",
                    "107580828438128948544648617943369281976",
                    "302059678418441467271694324972509664904",
                    "329815054368941535576649484587697607592",
                    "83354471640335339165381725665650886157",
                    "20275277051791725878689896175251433783"
                  ]
                },
                "source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
                "target": {
                  "file": "src/transports/smart_pkt.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:35:29Z"
          }
        }
      ],
      "modified": "2026-10-20T13:35:29.857234910Z",
      "provider": "osv",
      "references": [
        "https://github.com/libgit2/libgit2/releases/tag/v0.26.6",
        "https://github.com/libgit2/libgit2/releases/tag/v0.27.4",
        "https://lists.debian.org/debian-lts-announce/2018/08/msg00024.html",
        "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",
        "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"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-15501",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387848,
  "published_at": "2018-08-18T02:29:01.713+00:00"
}