Path traversal in go-git - CVE-2026-45571

 

Path traversal in go-git - CVE-2026-45571

Published: May 19, 2026


Vulnerability identifier: #VU131780
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-45571
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: go-git
Affected software:
go-git

Detailed vulnerability description

The vulnerability allows a remote attacker to modify files in the repository .git directory and submodule .git directories.

The vulnerability exists due to path traversal in path validation logic when processing a maliciously crafted repository payload during checkout. A remote attacker can supply a crafted repository to modify files in the repository .git directory and submodule .git directories.

User interaction is required to interact with a maliciously crafted repository payload. Some attack vectors are platform-specific and may affect only Windows users, only macOS users, or all supported platforms.


How to mitigate CVE-2026-45571

Install security update from vendor's website.

Sources