Symlink Attack Affecting github.com/go-git/go-git package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITGOGIT-18857904
  • published16 Aug 2026
  • disclosed7 Aug 2026
  • creditkodareef5, HughLewis20

Introduced: 7 Aug 2026

NewCVE-2026-71556  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

There is no fixed version for github.com/go-git/go-git.

Overview

Affected versions of this package are vulnerable to Symlink Attack in worktree_fs.go and worktree.go are vulnerable to symlink traversal in filesystem-backed worktrees. An attacker can modify or overwrite files outside the intended worktree by placing a symlink in the tree and then triggering a worktree operation, such as checkout, create, rename, or remove, against a path that resolves through that link. This can redirect writes into the repository’s .git metadata or another external target, leading to arbitrary file write and corruption of repository state, which can break subsequent Git operations and expose or alter files the application did not intend to touch.

CVSS Base Scores

version 4.0
version 3.1