Skip to main content
VulnerabilityPublished

CVE-2026-71556: go-git · Worktree operations may follow symlinks

Affects github.com/go-git/go-git/v5Source GCVE Database

0
Compare

Not known to be exploited · CVSS 7.1 High : upgrade to 5.19.2 soon.

Data as of 15 Nov 2026, 20:25 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.19.2, 6.0.0-alpha.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.

What to do

Upgrade github.com/go-git/go-git/v5 to 5.19.2; github.com/go-git/go-git/v6 to 6.0.0-alpha.5.

Affected software

ProductAffectedFixed in
Gogithub.com/go-git/go-git/v5Affected
  • <5.19.2
Fixed in
  • 5.19.2
Gogithub.com/go-git/go-git/v6Affected
  • <6.0.0-alpha.5
Fixed in
  • 6.0.0-alpha.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and users of filesystem-backed worktrees should upgrade to go-git version 5.19.2 or later, or 6.0.0-alpha.5 or later. The patch enforces symlink-safe boundaries in worktree filesystem operations, rejecting paths that could escape the intended directory via symlinks. No additional mitigations are required if patched. Applications using in-memory storage or memfs are not affected.

Description

CVE-2026-71556 is a symlink traversal vulnerability in the go-git library's worktree operations. It allows an attacker who can introduce or control symbolic links in the worktree to cause write operations to affect files outside the intended directory, including Git metadata files like .git/config. This occurs because the filesystem wrapper did not prevent following existing symlinks in any path component. The issue is fixed in go-git versions 5.19.2 and 6.0.0-alpha.5 by enforcing symlink-safe boundaries in worktree filesystem operations.

References

Community reviews

Loading reviews…