{"id":"CVE-2024-31455","published":"2024-04-09T16:52:03Z","modified":"2024-08-02T01:52:56Z","title":"Minder GetRepositoryByName data leak","vendor":"stacklok","product":"minder","tier":"tail","description":{"text":"Minder by Stacklok is an open source software supply chain security platform. A refactoring in commit `5c381cf` added the ability to get GitHub repositories registered to a project without specifying a specific provider.  Unfortunately, the SQL query for doing so was missing parenthesis, and would select a random repository. This issue is patched in pull request 2941. As a workaround, revert prior to `5c381cf`, or roll forward past `2eb94e7`.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00765,"percentile":0.5635,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/stacklok/minder/security/advisories/GHSA-ggp5-28x4-xcj9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/stacklok/minder/pull/2941","tags":["x_refsource_MISC"]},{"url":"https://github.com/stacklok/minder/commit/11b6573ad62cfdd783a8bb52f3fce461466037f4","tags":["x_refsource_MISC"]},{"url":"https://github.com/stacklok/minder/commit/5c381cfbf3e4b7ce040ed8511a1fae1a78a0014b","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":11.27},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"stacklok","affectedVersions":[{"vendor":"stacklok","product":"minder","versions":["= 0.0.39"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-03T19:55:31.110388Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/stacklok/minder","vulnerableRanges":[">=0.0.39, <0.0.40"],"patched":["0.0.40"],"from":["GHSA-ggp5-28x4-xcj9","GO-2024-2701"],"provenance":"source"}],"summary":{"text":"Minder (by Stacklok, an open source software supply chain security platform) has a flaw in the GetRepositoryByName path, introduced by a refactoring in commit 5c381cf: a SQL query that lacks parentheses and can therefore return a random repository when fetching repositories registered to a project without a specified provider. An attacker with network access and low-privileged credentials, requiring no user interaction, can obtain confidential information about repositories they should not be able to see.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:16Z"},"euvd":{"id":"EUVD-2024-1208","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-stacklok-minder-cve-2024-27916","parents":[{"from":"CVE-2024-27916","to":"CVE-2024-31455","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["database/query/repositories.sql","internal/controlplane/handlers_artifacts.go","internal/controlplane/handlers_repositories.go","internal/db/repositories.sql.go"],"commits":["https://github.com/stacklok/minder/commit/45750b4e9fb2de33365758366e06c19e999bd2eb","https://github.com/stacklok/minder/commit/11b6573ad62cfdd783a8bb52f3fce461466037f4","https://github.com/stacklok/minder/commit/5c381cfbf3e4b7ce040ed8511a1fae1a78a0014b"],"basis":"shared function","functions":["DeleteRepositoryByName","GetArtifactByName","GetRepositoryByName","GetRepositoryByRepoID"]}]}],"children":[{"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-27916","published":"2024-03-06","fixed":"0.0.33","kev":false},{"cve":"CVE-2024-31455","published":"2024-04-09","fixed":"0.0.40","kev":false},{"cve":"CVE-2024-34084","published":"2024-05-07","fixed":"0.0.48","kev":false,"link":{"from":"CVE-2024-31455","to":"CVE-2024-34084","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/stacklok/minder","fromFixed":"0.0.40","toFixed":"0.0.48","daysApart":28}]}},{"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}],"package":"Go:github.com/stacklok/minder"}}