CVE-2026-45571

NameCVE-2026-45571
Descriptiongo-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, a path validation issue in go-git could allow crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. These validations were introduced in upstream Git years ago, so the vulnerability arose from go-git drifting from those checks. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-github-go-git-go-git (PTS)bookworm5.4.2-3vulnerable
trixie5.14.0-1vulnerable
forky, sid5.19.1-1fixed
golang-github-go-git-go-git-v6 (PTS)forky6~git20260305.2083cf94-3vulnerable
sid6.0.0~alpha.4-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-go-git-go-gitsource(unstable)5.19.1-1
golang-github-go-git-go-git-v6source(unstable)6.0.0~alpha4-1

Notes

https://github.com/go-git/go-git/security/advisories/GHSA-crhj-59gh-8x96

Search for package or bug name: Reporting problems