# CVE-2026-45571: go-git: Crafted repositories may modify main and submodule .git directories

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-05-19T15:38:39.000Z
- Modified: 2026-09-10T03:50:46.602Z
- Also known as: GHSA-crhj-59gh-8x96, GO-2026-5336
- Related: CGA-gqmr-8jcx-g425
- 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.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.

(As written by CVE List.)

## Affected

- go-git go-git: < 5.19.1; >= 6.0.0-alpha.1, < 6.0.0-alpha.4
- github.com/go-git/go-git/v5 (Go): before 5.19.1
- github.com/go-git/go-git/v6 (Go): before 6.0.0-alpha.4
- github.com/go-git/go-git (Go): up to 44.7.0
- go-git_project go-git: before 5.19.1; 6.0.0

## Every score

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

## References

- <https://github.com/go-git/go-git/security/advisories/GHSA-crhj-59gh-8x96> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45571> (advisory)
- <https://github.com/go-git/go-git> (package)
- <https://github.com/go-git/go-git/releases/tag/v5.19.1> (web)

## Sources

- CVE List: [CVE-2026-45571](https://www.cve.org/CVERecord?id=CVE-2026-45571), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-crhj-59gh-8x96](https://github.com/advisories/GHSA-crhj-59gh-8x96), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5336](https://pkg.go.dev/vuln/GO-2026-5336), CC-BY-4.0, modified 2026-08-08
- NVD: [CVE-2026-45571](https://nvd.nist.gov/vuln/detail/CVE-2026-45571), Public domain, modified 2026-06-17

---

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