Live threats

All CVEs / go-git

CVE-2026-71557go-git

Medium 6.3

Priority
38
CVSS 3.1
6.3
EPSS
—
Auth required
Yes
Published
Aug 7, 2026
Updated
Sep 10, 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:L/UI:R/S:U/C:N/I:H/A:L

What happens

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for go-git.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-git/go-git/v5 < 5.19.2 5.19.2 go get github.com/go-git/go-git/v5@v5.19.2
Go github.com/go-git/go-git/v5 < 5.19.2 5.19.2 go get github.com/go-git/go-git/v5@v5.19.2
Go github.com/go-git/go-git/v6 < 6.0.0-alpha.5 6.0.0-alpha.5 go get github.com/go-git/go-git/v6@v6.0.0-alpha.5
Go github.com/go-git/go-git/v6 < 6.0.0-alpha.5 6.0.0-alpha.5 go get github.com/go-git/go-git/v6@v6.0.0-alpha.5

Per OSV / GitHub Advisories (GHSA-qgq7-7hm3-q39j, GO-2026-6214). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+8), Red Hat (+1)

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

Official sources

References

Links published by the sources. Open them with care.