CVE-2026-71557go-git: Malicious reference names may modify files outside the reference storage
- 6.3MediumCVSS base score
- 0.41%Exploitation in 30 daysEPSS · top 64% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 1 day later
· 1 day later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L |
| NVDNVD · Awaiting Analysis | 3.1 | Medium6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L |
- EPSS (exploitation in 30 days)
- 0.41% · top 64% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.3.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/go-git/go-git/v5GHSA-qgq7-7hm3-q39j (opens in a new tab)
- Gogithub.com/go-git/go-git/v6GHSA-qgq7-7hm3-q39j (opens in a new tab)
References
References7
- https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j (opens in a new tab)x_refsource_CONFIRM
- https://github.com/go-git/go-git/pull/2247 (opens in a new tab)x_refsource_MISC
- https://github.com/go-git/go-git/pull/2254 (opens in a new tab)x_refsource_MISC
- https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7 (opens in a new tab)x_refsource_MISC
- https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36 (opens in a new tab)x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v5.19.2 (opens in a new tab)x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-54527 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-qgq7-7hm3-q39j (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-71557)Record last updated .