
CVE catalog
CVE-2026-45571
go-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
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.30% · Oct 25, 2026
go-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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-go-git-go-git | sid | 5.19.2-2 | fixed |
| Debian | golang-github-go-git-go-git | forky | 5.19.2-2 | fixed |
| Debian | golang-github-go-git-go-git | trixie | 5.14.0-1 | vulnerable |
| Debian | golang-github-go-git-go-git | bookworm | 5.4.2-3 | vulnerable |
| Cpe | golang-github-go-git-go-git | Not reported | Not reported | vulnerable |
| Cpe | go-git | Not reported | 5.19.1 | fixed |
| Cpe | go-git | Not reported | Not reported | unknown |
| Go | github.com/go-git/go-git/v5 | Not reported | 5.19.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-go-git-go-git | source | sid | 5.19.1-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-github-go-git-go-git | source | forky | 5.19.1-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-github-go-git-go-git | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | golang-github-go-git-go-git | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | go-git | cpe | Not reported | 5.19.1 | Not reported | Not reported | Not reported |
| Go | github.com/go-git/go-git/v5 | Go | Not reported | 5.19.1 | Not reported | Not reported | Not reported |
Notes
[trixie] golang-github-go-git-go-git: Minor issue [bookworm] golang-github-go-git-go-git: Limited support, minor issue; path traversal
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [go-git]Affected
Source package: [golang-github-go-git-go-git]
Details (2)
5.4.2-3+b7· amd64 · bookwormAffected
nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12
5.4.2-3+b7· arm64 · bookwormAffected
nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12
- [golang-github-go-git-go-git-dev]Affected
Source package: [golang-github-go-git-go-git]
Details (2)
5.4.2-3· all · bookwormAffected
nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12
5.4.2-3· all · bookwormAffected
nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12
[Debian 13 (Trixie)]
- [go-git]Affected
Source package: [golang-github-go-git-go-git]
Details (2)
5.14.0-1+b3· amd64 · trixieAffected
nvd · golang-github-go-git-go-git · debian · 13
5.14.0-1+b3· arm64 · trixieAffected
nvd · golang-github-go-git-go-git · debian · 13
- [golang-github-go-git-go-git-dev]Affected
Source package: [golang-github-go-git-go-git]
Details (2)
5.14.0-1· all · trixieAffected
nvd · golang-github-go-git-go-git · debian · 13
5.14.0-1· all · trixieAffected
nvd · golang-github-go-git-go-git · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10831-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-45571]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-45571]
- [https://pkg.go.dev/vuln/GO-2026-5336]
- [https://security-tracker.debian.org/tracker/CVE-2026-45571]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45571.json]
[Debian Security Tracker] · [FIRST EPSS] · [Go Vulnerability Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]