# CVE-2026-34165: go-git: Maliciously crafted idx file can cause asymmetric memory consumption

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-03-30T17:17:54.000Z
- Modified: 2026-09-10T03:50:39.836Z
- Also known as: GHSA-jhf3-xxhw-2wpp, GO-2026-4910
- Related: CGA-m74g-hr5c-wfmv
- Weaknesses: CWE-191, CWE-770
- 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. From version 5.0.0 to before version 5.17.1, a vulnerability has been identified in which a maliciously crafted .idx file can cause asymmetric memory consumption, potentially exhausting available memory and resulting in a denial-of-service (DoS) condition. Exploitation requires write access to the local repository's .git directory, it order to create or alter existing .idx files. This issue has been patched in version 5.17.1.

(As written by CVE List.)

## Affected

- go-git go-git: >= 5.0.0, < 5.17.1
- github.com/go-git/go-git/v5 (Go): from 5.0.0 before 5.17.1
- github.com/go-git/go-git (Go): all versions
- github.com/go-git/go-git/v4 (Go): all versions
- go-git_project go-git: from 5.0.0 before 5.17.1

## Every score

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

## References

- <https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp> (advisory, vendor-advisory, web)
- <https://github.com/go-git/go-git/releases/tag/v5.17.1> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34165> (advisory)
- <https://github.com/go-git/go-git> (package)

## Sources

- CVE List: [CVE-2026-34165](https://www.cve.org/CVERecord?id=CVE-2026-34165), CVE Terms of Use, modified 2026-04-02
- GitHub Advisory Database: [GHSA-jhf3-xxhw-2wpp](https://github.com/advisories/GHSA-jhf3-xxhw-2wpp), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4910](https://pkg.go.dev/vuln/GO-2026-4910), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-34165](https://nvd.nist.gov/vuln/detail/CVE-2026-34165), Public domain, modified 2026-07-24

---

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