CVE-2023-49568
JSON

7.5high

Maliciously crafted Git server replies can cause DoS on go-git clients

Severity
7.5high CVSS:3.1 by Bitdefender
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Bitdefender
Also known as
GHSA-mw99-9chc-xw7rGO-2024-2466

Description

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.

Affected

Product or packageVersionsReported by
go-git go-git5.11.0CVE List
github.com/go-git/go-git/v5 (Go)before 5.11.0, from 5.0.0 before 5.11.0GitHub Advisory Database, Go Vulnerability Database
gopkg.in/src-d/go-git.v4 (Go)from 4.7.1 up to 4.13.1, from 4.7.1GitHub Advisory Database, Go Vulnerability Database
go-git_project go-gitfrom 4.0.0 before 5.11.0NVD

All scores

Bitdefender7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-20

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

What each source says

CVE List

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.

GitHub Advisory Database
Impact

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients.

Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.

Patches

Users running versions of go-git from v4 and above are recommended to upgrade to v5.11 in order to mitigate this vulnerability.

Workarounds

In cases where a bump to the latest version of go-git is not possible, we recommend limiting its use to only trust-worthy Git servers.

Credit

Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.

References
Go Vulnerability Database

Denial of service in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4

NVD (es)

Se descubrió una vulnerabilidad de denegación de servicio (DoS) en versiones de go-git anteriores a la v5.11. Esta vulnerabilidad permite a un atacante realizar ataques de denegación de servicio proporcionando respuestas especialmente manipuladas desde un servidor Git que provoca el agotamiento de los recursos en los clientes go-git. Las aplicaciones que utilizan únicamente el sistema de archivos en memoria compatible con go-git no se ven afectadas por esta vulnerabilidad. Este es un problema de implementación de go-git y no afecta el cli de git ascendente.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-49568 changed 2025-06-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-mw99-9chc-xw7r changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2466 changed 2026-02-04CC-BY-4.0
NVDCVE-2023-49568 changed 2026-06-17Public domain