CVE-2026-34165
JSON

5.0medium

go-git: Maliciously crafted idx file can cause asymmetric memory consumption

Severity
5.0medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jhf3-xxhw-2wppGO-2026-4910

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.

Affected

Product or packageVersionsReported by
go-git go-git>= 5.0.0, < 5.17.1CVE List
github.com/go-git/go-git/v5 (Go)from 5.0.0 before 5.17.1GitHub Advisory Database, Go Vulnerability Database
github.com/go-git/go-git (Go)all versionsGo Vulnerability Database
github.com/go-git/go-git/v4 (Go)all versionsGo Vulnerability Database
go-git_project go-gitfrom 5.0.0 before 5.17.1NVD

All scores

GitHub_M5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
GitHub5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-191CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

Users should upgrade to v5.17.1, or the latest v6 pseudo-version, in order to mitigate this vulnerability.

Credit

The go-git maintainers thank @kq5y for finding and reporting this issue privately to the go-git project.

Go Vulnerability Database

Maliciously crafted idx file can cause asymmetric memory consumption in github.com/go-git/go-git

NVD (es)

go-git es una biblioteca de implementación de git extensible escrita en Go puro. Desde la versión 5.0.0 hasta antes de la versión 5.17.1, se ha identificado una vulnerabilidad en la que un archivo .idx creado maliciosamente puede causar un consumo asimétrico de memoria, agotando potencialmente la memoria disponible y resultando en una condición de denegación de servicio (DoS). La explotación requiere acceso de escritura al directorio .git del repositorio local, para crear o alterar archivos .idx existentes. Este problema ha sido parcheado en la versión 5.17.1.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-34165 changed 2026-04-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-jhf3-xxhw-2wpp changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4910 changed 2026-04-08CC-BY-4.0
NVDCVE-2026-34165 changed 2026-07-24Public domain