Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1tdzk5LTljaGMteHc3cs4AA4Cr

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

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

Permalink: https://github.com/advisories/GHSA-mw99-9chc-xw7r
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tdzk5LTljaGMteHc3cs4AA4Cr
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 12 months ago
Updated: 11 months ago


CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Percentage: 0.00055
EPSS Percentile: 0.24832

Identifiers: GHSA-mw99-9chc-xw7r, CVE-2023-49568
References: Repository: https://github.com/go-git/go-git
Blast Radius: 31.0

Affected Packages

go:gopkg.in/src-d/go-git.v4
Dependent packages: 6,399
Dependent repositories: 7,932
Downloads:
Affected Version Ranges: >= 4.7.1
No known fixed version
All affected versions: 4.7.1, 4.8.0, 4.8.1, 4.9.0, 4.9.1, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.13.1
go:github.com/go-git/go-git/v5
Dependent packages: 8,164
Dependent repositories: 13,417
Downloads:
Affected Version Ranges: >= 4.0.0, < 5.11.0
Fixed in: 5.11.0
All affected versions: 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.4.1, 5.4.2, 5.5.0, 5.5.1, 5.5.2, 5.6.0, 5.6.1, 5.7.0, 5.8.0, 5.8.1, 5.9.0, 5.10.0, 5.10.1
All unaffected versions: 5.11.0, 5.12.0