{"id":"CVE-2026-71556","published":"2026-08-07T16:37:40Z","modified":"2026-08-07T16:58:19Z","title":"go-git: Worktree operations may follow symlinks","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, worktree operations (including checkout, status, and add) resolve symbolic links inside the working tree without confining resolution to the worktree boundary, so a maliciously crafted repository containing a symlink can cause go-git to read from or write to files outside the intended working directory when the repository is cloned and its worktree operations are used. Versions 5.19.2 and 6.0.0-alpha.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00454,"percentile":0.31404,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-hc8v-wwc9-vgxm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/go-git/go-git/commit/008a78f2dd86f52544ddff8b8e8ddeecdf3f7aab","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/commit/661d1c7f101d34e002a3cfcf8dbea5b7421d07ac","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":11.3,"factors":[{"name":"EPSS percentile","points":6.28},{"name":"CVSS severity","points":4.97}]},"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-07T16:58:08.599214Z","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-hc8v-wwc9-vgxm","GO-2026-6213"],"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-hc8v-wwc9-vgxm","GO-2026-6213"],"provenance":"source"}],"summary":{"text":"The go-git library, a pure Go implementation of git, contains a flaw in its worktree operations (including checkout, status and add), which resolve symbolic links inside the working tree without confining resolution to the worktree boundary. An attacker who supplies a maliciously crafted repository containing a symlink can cause go-git to read or write files outside the intended working directory, provided a user with the repository cloned uses those worktree operations, which requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:52Z"},"euvd":{"id":"EUVD-2026-54526","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45022","published":"2026-05-27","fixed":"5.19.0","kev":false},{"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-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-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"}}