Live threats

All CVEs / Go-git Project

CVE-2026-34165Go-git Project Go-git

Medium 5.0

Priority
30
CVSS 3.1
5.0
EPSS
—
Auth required
Yes
Published
Mar 31, 2026
Updated
Jul 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-191, CWE-770
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-git/go-git all no fixed version —
Go github.com/go-git/go-git/v4 all no fixed version —
Go github.com/go-git/go-git/v5 ≥ 5.0.0 < 5.17.1 5.17.1 go get github.com/go-git/go-git/v5@v5.17.1
Go github.com/go-git/go-git/v5 ≥ 5.0.0 < 5.17.1 5.17.1 go get github.com/go-git/go-git/v5@v5.17.1

Per OSV / GitHub Advisories (GO-2026-4910, GHSA-jhf3-xxhw-2wpp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
go-git_projectgo-git≥ 5.0.0 < 5.17.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.