Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-8099

Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.

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

Source evidence

CVE-2018-8099

core-osv · Original source

Published 14 Mar 2018, 00:29 UTC

Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.

osv:CVE-2018-8099
Complete source record
{
  "id": "cf6b24a2a6a26cabeef5c27b6b35732bab9241307fb9d8b0b670e31f65695f41",
  "url": "https://osv.dev/vulnerability/CVE-2018-8099",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-8099",
    "summary": "Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.",
    "evidence": "osv:CVE-2018-8099",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-8099",
      "aliases": [
        "CVE-2018-8099"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libgit2/libgit2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "dd2d5381773ca3f7bc31f56aea6fc067db5ea404"
                },
                {
                  "fixed": "58a6fe94cb851f71214dbefac3f9bffee437d6fe"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.26.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "58a6fe94cb851f71214dbefac3f9bffee437d6fe"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.26.1",
            "v0.26.0-rc2",
            "v0.26.0",
            "v0.27.0-rc1",
            "v0.27.0-rc2",
            "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-8099.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-8099-5d41732f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "54434640033148516061231194138629026265",
                    "36005312606787468733691535169613857896",
                    "20406774513225240641428088838518152789",
                    "31152256589248188643522889485772072262",
                    "333018302007796322857284296544971108009",
                    "10474665604692016785909399706669282923",
                    "118852015686781280320926685007600972444",
                    "334926489830149146612760990200220186931",
                    "34578972368817921048594679401107949855",
                    "67938626018468066344711208432715017404",
                    "104549862364235433960528485759213327713",
                    "895104035598238706338726863454189642",
                    "333691659661794338377060553396893695292",
                    "225188868774070178604722169567298450289",
                    "178421009659369774024887256913739816277",
                    "164098357496020222110408314788895883612",
                    "201908675194593531614919158297368280763",
                    "88303667997138751197628739510642223009",
                    "108060129305723536833558510022955542062",
                    "155556404635052772361138247102782480973",
                    "93917638411116238411790677871894336141",
                    "89926923003986250422445763207465218698",
                    "156324533981147638834860265256208246410",
                    "221065977889216699488749717955358282063",
                    "73630240176910640457380312420342491903",
                    "150355747291049439676457778792698228849",
                    "239800797623572347964284585324405070738",
                    "36565342770416434674233130777148102467",
                    "12324359012331978738579947485860681388"
                  ]
                },
                "source": "https://github.com/libgit2/libgit2/commit/58a6fe94cb851f71214dbefac3f9bffee437d6fe",
                "target": {
                  "file": "src/index.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-8099-f70f94cb",
                "digest": {
                  "length": 2344,
                  "function_hash": "198063612693010879224485591649861150621"
                },
                "source": "https://github.com/libgit2/libgit2/commit/58a6fe94cb851f71214dbefac3f9bffee437d6fe",
                "target": {
                  "file": "src/index.c",
                  "function": "read_entry"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:35:49Z"
          }
        }
      ],
      "modified": "2026-10-20T13:35:49.360964026Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html",
        "https://github.com/libgit2/libgit2/commit/58a6fe94cb851f71214dbefac3f9bffee437d6fe",
        "https://libgit2.github.com/security/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-8099",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387860,
  "published_at": "2018-03-14T00:29:00.657+00:00"
}