{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-71557","id":"CVE-2026-71557","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.","descriptionLong":"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.","published":"2026-08-07T16:41:31.070Z","updated":"2026-10-28T02:31:08.615916396Z","reserved":"2026-08-06T21:24:15.376Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["go-git"],"affectedProducts":[{"vendor":"go-git","product":"go-git","defaultStatus":null,"versions":[{"version":"< 5.19.2","status":"affected"},{"version":">= 6.0.0-alpha.1, < 6.0.0-alpha.5","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.19.2"],"fixed":["5.19.2"],"advisory":"GHSA-qgq7-7hm3-q39j"},{"ecosystem":"Go","name":"github.com/go-git/go-git/v6","purl":"pkg:golang/github.com/go-git/go-git/v6","ranges":["<6.0.0-alpha.5"],"fixed":["6.0.0-alpha.5"],"advisory":"GHSA-qgq7-7hm3-q39j"}],"cwes":["CWE-22"],"aliases":["GHSA-qgq7-7hm3-q39j","GO-2026-6214"],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/go-git/go-git/pull/2247","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/go-git/go-git/pull/2254","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/go-git/go-git/releases/tag/v5.19.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71557.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71557","tags":["advisory"]},{"url":"https://github.com/go-git/go-git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00413,"epssPercentile":0.36525,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-71557","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71557","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-71557","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qgq7-7hm3-q39j","ok":true,"note":"GHSA-qgq7-7hm3-q39j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-71557","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}