{"id":"CVE-2026-71557","published":"2026-08-07T16:41:31Z","modified":"2026-08-07T17:55:10Z","title":"go-git: Malicious reference names may modify files outside the reference storage","vendor":"go-git","product":"go-git","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.31803,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/pull/2254","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7","tags":["x_refsource_MISC"]},{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":6.36},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.41}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2026-10-18","earliestUrl":"https://github.com/Saku0512/reprokit-go-git-cve-2026-71557-lab","repos":[{"name":"Saku0512/reprokit-go-git-cve-2026-71557-lab","url":"https://github.com/Saku0512/reprokit-go-git-cve-2026-71557-lab","stars":0,"created":"2026-10-18"}]},"first":{"date":"2026-10-18","source":"PoC-in-GitHub","url":"https://github.com/Saku0512/reprokit-go-git-cve-2026-71557-lab"},"provenance":"source"},"vendorSlug":"go-git","affectedVersions":[{"vendor":"go-git","product":"go-git","versions":["< 5.19.2",">= 6.0.0-alpha.1, < 6.0.0-alpha.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-07T17:53:21.966734Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-git/go-git/v5","vulnerableRanges":["<5.19.2"],"patched":["5.19.2"],"from":["GHSA-qgq7-7hm3-q39j","GO-2026-6214"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git/v6","vulnerableRanges":["<6.0.0-alpha.5"],"patched":["6.0.0-alpha.5"],"from":["GHSA-qgq7-7hm3-q39j","GO-2026-6214"],"provenance":"source"}],"summary":{"text":"go-git, the pure-Go git implementation library, fails to sanitize reference names before using them to build on-disk paths under its reference storage directory. An attacker who can supply a crafted reference name, such as one containing directory-traversal sequences, can cause files to be written outside that directory, and this requires network access, low privileges, and a user interaction to trigger.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:51Z"},"euvd":{"id":"EUVD-2026-54527","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45570","published":"2026-05-27","fixed":"5.19.1","kev":false},{"cve":"CVE-2026-45571","published":"2026-05-27","fixed":"5.19.1","kev":false,"link":{"from":"CVE-2026-45571","to":"CVE-2026-71557","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.19.1","toFixed":"5.19.2","daysApart":72},{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v6","fromFixed":"6.0.0-alpha.4","toFixed":"6.0.0-alpha.5","daysApart":72}]}},{"cve":"CVE-2026-71556","published":"2026-08-07","fixed":"5.19.2","kev":false},{"cve":"CVE-2026-71557","published":"2026-08-07","fixed":"5.19.2","kev":false}],"package":"Go:github.com/go-git/go-git/v5"}}