CVE-2024-31455 Minder GetRepositoryByName data leak
Attackers can retrieve random repository data due to a missing parenthesis in a SQL query, exposing sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-31455?
CVE-2024-31455 is a medium-severity vulnerability in stacklok minder, published on 9 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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`.
Weakness: CWE-200
Which versions are affected by CVE-2024-31455?
3 open source packages ship an affected version, including github.com/stacklok/minder.
| Package | Affected | Fixed in |
|---|---|---|
github.com/stacklok/minder Go | From 0.0.39 | 0.0.40 |
github.com/stacklok/minder Go | From 0.0.39 | 0.0.40 |
github.com/stacklok/minder Go | From 0.0.39 | 0.0.40 |
How do I fix CVE-2024-31455?
Upgrade github.com/stacklok/minder to 0.0.40 or later.
Is CVE-2024-31455 being exploited?
There is no known exploitation of CVE-2024-31455 in the wild and no public exploit code.
Sources
Also known as GHSA-ggp5-28x4-xcj9, GO-2024-2701.