{"id":"CVE-2026-45571","published":"2026-05-27T14:57:32Z","modified":"2026-05-27T16:03:30Z","title":"go-git: Crafted repositories may modify main and submodule .git directories","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.1 and 6.0.0-alpha.4, a path validation issue in go-git could allow crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. These validations were introduced in upstream Git years ago, so the vulnerability arose from go-git drifting from those checks. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00297,"percentile":0.2291,"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-crhj-59gh-8x96","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":4.58},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"go-git","affectedVersions":[{"vendor":"go-git","product":"go-git","versions":["< 5.19.1",">= 6.0.0-alpha.1, < 6.0.0-alpha.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-27T16:03:19.270368Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-git/go-git/v5","vulnerableRanges":["<5.19.1"],"patched":["5.19.1"],"from":["GHSA-crhj-59gh-8x96","GO-2026-5336"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git/v6","vulnerableRanges":["<6.0.0-alpha.4"],"patched":["6.0.0-alpha.4"],"from":["GHSA-crhj-59gh-8x96"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git","vulnerableRanges":["<=44.7.0"],"patched":[],"from":["GHSA-crhj-59gh-8x96"],"provenance":"source"}],"summary":{"text":"go-git, the pure Go git implementation library, contains a path validation flaw that lets crafted repository data cause writes to files outside the intended checkout location, including the repository's .git directory. An attacker can exploit this over the network without authentication, but only if a user interacts with the crafted repository, such as by cloning or checking it out with an affected go-git version.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:15Z"},"euvd":{"id":"EUVD-2026-32544","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-41506","published":"2026-05-08","fixed":"5.18.0","kev":false},{"cve":"CVE-2026-45022","published":"2026-05-27","fixed":"5.19.0","kev":false,"link":{"from":"CVE-2026-45022","to":"CVE-2026-45571","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.19.0","toFixed":"5.19.1","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v6","fromFixed":"6.0.0-alpha.3","toFixed":"6.0.0-alpha.4","daysApart":0}]}},{"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},{"cve":"CVE-2026-71556","published":"2026-08-07","fixed":"5.19.2","kev":false,"link":{"from":"CVE-2026-45571","to":"CVE-2026-71556","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-71557","published":"2026-08-07","fixed":"5.19.2","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}]}}],"package":"Go:github.com/go-git/go-git/v5"}}