go-git: Maliciously crafted idx file can cause asymmetric memory consumption
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-34165
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:13 UTC · Revision 1
Source evidence
go-git: Maliciously crafted idx file can cause asymmetric memory consumption
core-osv · Original sourcePublished 31 Mar 2026, 13:46 UTC
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.
osv:CVE-2026-34165
Complete source record
{
"id": "86090f053a67b6784467385763ef471ee284f7ecca06cc43673c5ec9662f8c76",
"url": "https://osv.dev/vulnerability/CVE-2026-34165",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "go-git: Maliciously crafted idx file can cause asymmetric memory consumption",
"summary": "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.",
"evidence": "osv:CVE-2026-34165",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-34165",
"aliases": [
"CVE-2026-34165",
"GHSA-jhf3-xxhw-2wpp",
"GO-2026-4910"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/go-git/go-git",
"type": "GIT",
"events": [
{
"introduced": "9d0f15c4fa712cdacfa3887e9baac918f093fbf6"
},
{
"fixed": "5e23dfd02db92644dc4a3358ceb297fce875b772"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.17.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "5e23dfd02db92644dc4a3358ceb297fce875b772"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v5.17.1"
},
{
"cpe": "cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.17.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v5.17.0",
"v5.16.5",
"v5.16.4",
"v5.16.3",
"v5.16.2",
"v5.16.1",
"v5.16.0",
"v5.15.0",
"v5.14.0",
"v5.13.2",
"v5.13.1",
"v5.13.0",
"v5.12.0",
"v5.11.0",
"v5.10.1",
"v5.9.0",
"v5.10.0",
"v5.8.1",
"v5.8.0",
"v5.7.0",
"v5.6.1",
"v5.5.2",
"v5.6.0",
"v5.5.1",
"v5.5.0",
"v5.4.2",
"v5.4.1",
"v5.4.0",
"v5.3.0",
"v5.2.0",
"v5.1.0",
"v5.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34165.json"
}
}
],
"modified": "2026-10-28T02:30:22.149679353Z",
"provider": "osv",
"references": [
"https://github.com/go-git/go-git/releases/tag/v5.17.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34165.json",
"https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp",
"https://nvd.nist.gov/vuln/detail/CVE-2026-34165"
],
"provider_metadata": {
"cwe_ids": [
"CWE-191",
"CWE-770"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34165.json"
}
},
"related_cves": [
{
"value": "CVE-2026-34165",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488195,
"published_at": "2026-03-31T13:46:37.688+00:00"
}