{"id":"CVE-2026-71557","state":"PUBLISHED","title":"go-git: Malicious reference names may modify files outside the reference storage","description":"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.","publishedAt":"2026-08-07T16:41:31.070Z","updatedAt":"2026-08-07T17:55:10.638Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["go-git go-git"],"affected":[{"vendor":"go-git","product":"go-git","versions":[{"version":"< 5.19.2","status":"affected"},{"version":">= 6.0.0-alpha.1, < 6.0.0-alpha.5","status":"affected"}]}],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j","https://github.com/go-git/go-git/pull/2247","https://github.com/go-git/go-git/pull/2254","https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7","https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36","https://github.com/go-git/go-git/releases/tag/v5.19.2","https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/71xxx/CVE-2026-71557.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-71557","state":"PUBLISHED","datePublished":"2026-08-07T16:41:31.070Z","dateUpdated":"2026-08-07T17:55:10.638Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-06T21:24:15.376Z"},"containers":{"cna":{"title":"go-git: Malicious reference names may modify files outside the reference storage","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"go-git","product":"go-git","versions":[{"version":"< 5.19.2","status":"affected"},{"version":">= 6.0.0-alpha.1, < 6.0.0-alpha.5","status":"affected"}]}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j","name":"https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/go-git/go-git/pull/2247","name":"https://github.com/go-git/go-git/pull/2247","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/pull/2254","name":"https://github.com/go-git/go-git/pull/2254","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7","name":"https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36","name":"https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/releases/tag/v5.19.2","name":"https://github.com/go-git/go-git/releases/tag/v5.19.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5","name":"https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-07T16:41:31.070Z"},"source":{"advisory":"GHSA-qgq7-7hm3-q39j","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-07T17:53:21.966734Z","id":"CVE-2026-71557","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-07T17:55:10.638Z"}}]}}}