{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.19.2"
              },
              {
                "introduced": "6.0.0-alpha.1"
              },
              {
                "fixed": "6.0.0-alpha.5"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "5c776e15a11be5d2dfc6df27692bf867a69c37d8"
            },
            {
              "fixed": "3eeb238da61eb9c7a324f3ee04f990ce89175642"
            },
            {
              "fixed": "fc18716c90bcd8e8c935742431e26e260ab7ef60"
            },
            {
              "fixed": "4a0e66d555de5f9a30c31e2df64f445f42bd01e7"
            },
            {
              "fixed": "da9f7d8a0e98b475600177348d6ece384a370f36"
            }
          ],
          "repo": "https://github.com/go-git/go-git",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qgq7-7hm3-q39j"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71557.json"
  },
  "details": "go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.",
  "id": "CVE-2026-71557",
  "modified": "2026-08-12T03:51:14.595621705Z",
  "published": "2026-08-07T16:41:31.070Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/go-git/go-git/releases/tag/v5.19.2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71557.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-71557"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-git/go-git/pull/2247"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-git/go-git/pull/2254"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "go-git: Malicious reference names may modify files outside the reference storage"
}