# CVE-2026-71557: go-git: Malicious reference names may modify files outside the reference storage

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-08-07T16:41:31.070Z
- Modified: 2026-09-10T20:41:33.140Z
- Also known as: GHSA-qgq7-7hm3-q39j, GO-2026-6214
- Related: CGA-5rcr-hj5p-4fc7
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- go-git go-git: < 5.19.2; >= 6.0.0-alpha.1, < 6.0.0-alpha.5
- github.com/go-git/go-git/v5 (Go): before 5.19.2
- github.com/go-git/go-git/v6 (Go): before 6.0.0-alpha.5

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L`

## References

- <https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j> (advisory, web)
- <https://github.com/go-git/go-git/pull/2247> (fix, web)
- <https://github.com/go-git/go-git/pull/2254> (fix, web)
- <https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7> (web)
- <https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36> (web)
- <https://github.com/go-git/go-git/releases/tag/v5.19.2> (web)
- <https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5> (web)
- <https://github.com/go-git/go-git> (package)

## Sources

- CVE List: [CVE-2026-71557](https://www.cve.org/CVERecord?id=CVE-2026-71557), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-qgq7-7hm3-q39j](https://github.com/advisories/GHSA-qgq7-7hm3-q39j), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6214](https://pkg.go.dev/vuln/GO-2026-6214), CC-BY-4.0, modified 2026-09-01
- NVD: [CVE-2026-71557](https://nvd.nist.gov/vuln/detail/CVE-2026-71557), Public domain, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-71557 · Whole record: https://cve.day/CVE-2026-71557.json · Rebuilt by cve.day 2026-11-25T22:59:31.865Z
