Path traversal in go-git - CVE-2026-45571
Published: May 19, 2026
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.