Live threats

All CVEs / Go-git Project

CVE-2026-45571Go-git Project Go-git

Medium 5.4 No auth needed

Priority
47
CVSS 3.1
5.4
EPSS
—
Auth required
No
Published
May 27, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-git/go-git ≤ 44.7.0 no fixed version —
Go github.com/go-git/go-git/v5 < 5.19.1 5.19.1 go get github.com/go-git/go-git/v5@v5.19.1
Go github.com/go-git/go-git/v5 < 5.19.1 5.19.1 go get github.com/go-git/go-git/v5@v5.19.1
Go github.com/go-git/go-git/v6 < 6.0.0-alpha.4 6.0.0-alpha.4 go get github.com/go-git/go-git/v6@v6.0.0-alpha.4

Per OSV / GitHub Advisories (GHSA-crhj-59gh-8x96, GO-2026-5336). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
go-git_projectgo-git< 5.19.1
go-git_projectgo-git6.0.0
go-git_projectgo-git6.0.0
go-git_projectgo-git6.0.0

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.