# CVE-2024-37904: Denial of service from maliciously configured Git repository in Minder

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.7
- **CVSS:** 5.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-hpcg-xjq5-g666, GO-2024-2934
- **Published:** 2024-06-18T16:34:24.000Z
- **Modified:** 2026-09-10T03:50:15.435Z

## Who should check

- Projects that depend on Go package github.com/stacklok/minder (\< 0.0.52)
- Anyone running stacklok minder \< 0.0.52

## Description

Minder is an open source Software Supply Chain Security Platform. Minder's Git provider is vulnerable to a denial of service from a maliciously configured GitHub repository. The Git provider clones users repositories using the \`github.com/go-git/go-git/v5\` library on lines \`L55-L89\`. The Git provider does the following on the lines \`L56-L62\`. First, it sets the \`CloneOptions\`, specifying the url, the depth etc. It then validates the options. It then sets up an in-memory filesystem, to which it clones and Finally, it clones the repository. The \`(g \*Git) Clone()\` method is vulnerable to a DoS attack: A Minder user can instruct Minder to clone a large repository which will exhaust memory and crash the Minder server. The root cause of this vulnerability is a combination of the following conditions: 1. Users can control the Git URL which Minder clones, 2. Minder does not enforce a size limit to the repository, 3. Minder clones the entire repository into memory. This issue has been addressed in commit \`7979b43\` which has been included in release version v0.0.52. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- Go `github.com/stacklok/minder`: affected \< 0.0.52; fixed 0.0.52 (osv)
- stacklok minder: \< 0.0.52 (cvelist)

## Mitigation

- Upgrade github.com/stacklok/minder to 0.0.52 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-37904. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-37904.md
Affected: github.com/stacklok/minder < 0.0.52
Fixed in: 0.0.52

Steps:
1. Search this machine and project for github.com/stacklok/minder (Go), stacklok minder: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-37904 being exploited?

There is no confirmed exploitation: CVE-2024-37904 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-37904?

Medium: CVSS 5.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-37904?

github.com/stacklok/minder \< 0.0.52.

### Is there a fix for CVE-2024-37904?

Yes. Fixed in 0.0.52. Upgrade github.com/stacklok/minder to 0.0.52 or later.

### How do I check if I'm affected by CVE-2024-37904?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/stacklok/minder/security/advisories/GHSA-hpcg-xjq5-g666>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-37904>
- patch: <https://github.com/stacklok/minder/commit/7979b43>
- patch: <https://github.com/stacklok/minder/commit/35bab8f9a6025eea9e6e3cef6bd80707ac03d2a9>
- other: <https://github.com/stacklok/minder/blob/85985445c8ac3e51f03372e99c7b2f08a6d274aa/internal/providers/git/git.go#L55-L89>
- other: <https://github.com/stacklok/minder/blob/85985445c8ac3e51f03372e99c7b2f08a6d274aa/internal/providers/git/git.go#L56-L62>
- other: <https://github.com/stacklok/minder>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-37904>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hpcg-xjq5-g666> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2934> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-37904> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-37904>
