PT-2026-41959 · Go-Git · Go-Git

Ayushparkara

+1

·

Published

2026-05-19

·

Updated

2026-05-27

·

CVE-2026-45571

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Name of the Vulnerable Software and Affected Versions go-git versions prior to v5
Description A path validation issue allows crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. This occurs because the software drifted from validation checks implemented in upstream Git. Some attack vectors are platform-specific, affecting only Windows or macOS users, while others apply across all supported platforms. Isolation may be provided if non-descendant go-billy filesystem instances or different filesystem types are used for the Storer and Worktree, such as using memfs for the .git directory and osfs for the worktree. However, this isolation may not apply to repositories containing submodules, as submodule dotgit directories may still be materialized within the worktree context.
Recommendations Upgrade to a supported go-git version v5 or later.

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2026-45571
GHSA-CRHJ-59GH-8X96
OPENSUSE-SU-2026:10831-1

Affected Products

Go-Git