{"id":"CVE-2024-37904","published":"2024-06-18T17:07:02Z","modified":"2024-08-02T04:04:23Z","title":"Denial of service from maliciously configured Git repository in Minder","vendor":"stacklok","product":"minder","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00856,"percentile":0.55872,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/stacklok/minder/security/advisories/GHSA-hpcg-xjq5-g666","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/stacklok/minder/commit/7979b43","tags":["x_refsource_MISC"]},{"url":"https://github.com/stacklok/minder/blob/85985445c8ac3e51f03372e99c7b2f08a6d274aa/internal/providers/git/git.go#L55-L89","tags":["x_refsource_MISC"]},{"url":"https://github.com/stacklok/minder/blob/85985445c8ac3e51f03372e99c7b2f08a6d274aa/internal/providers/git/git.go#L56-L62","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":11.17},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"stacklok","affectedVersions":[{"vendor":"stacklok","product":"minder","versions":["< 0.0.52"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-20T14:22:31.209090Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/stacklok/minder","vulnerableRanges":["<0.0.52"],"patched":["0.0.52"],"from":["GHSA-hpcg-xjq5-g666","GO-2024-2934"],"provenance":"source"}],"summary":{"text":"A flaw in Minder's Git provider, which clones user-supplied repositories using the go-git library, causes the Minder server to consume memory without limit when it clones a repository. An attacker with low privileges who can get Minder to clone a maliciously configured GitHub repository, with user interaction required, can exhaust memory and crash the server, since Minder enforces no repository size limit and clones the entire repository into memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:53:25Z"},"euvd":{"id":"EUVD-2024-2072","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-stacklok-minder-cve-2024-27916","parents":[{"from":"CVE-2024-31455","to":"CVE-2024-37904","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/providers/github/common.go"],"commits":["https://github.com/stacklok/minder/commit/11b6573ad62cfdd783a8bb52f3fce461466037f4","https://github.com/stacklok/minder/commit/5c381cfbf3e4b7ce040ed8511a1fae1a78a0014b","https://github.com/stacklok/minder/commit/7979b43a1c1acd3d8adcc70ebed29b0fbe2c1e9f","https://github.com/stacklok/minder/commit/35bab8f9a6025eea9e6e3cef6bd80707ac03d2a9"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-35185","published":"2024-05-16","fixed":"0.0.49","kev":false},{"cve":"CVE-2024-35194","published":"2024-05-20","fixed":"0.0.50","kev":false},{"cve":"CVE-2024-35238","published":"2024-05-27","fixed":"0.0.51","kev":false,"link":{"from":"CVE-2024-35238","to":"CVE-2024-37904","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/stacklok/minder","fromFixed":"0.0.51","toFixed":"0.0.52","daysApart":22}]}},{"cve":"CVE-2024-37904","published":"2024-06-18","fixed":"0.0.52","kev":false},{"cve":"CVE-2024-27093","published":"2024-02-26","fixed":"0.20240226.1425","kev":false}],"package":"Go:github.com/stacklok/minder"}}