CVE-2024-31455: Github.com/stacklok/minder Minder GetRepositoryByName Data Leak Vulnerability
MODERATECVE-2024-31455 is a MODERATE (CVSS 4.3) minder getrepositorybyname data leak vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Github.com/stacklok/minder libraries in the Go ecosystem. The issue involves minder getrepositorybyname data leak. Remediation is available by upgrading affected packages to version 0.0.40.
CVE-2024-31455 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-31455
To remediate this vulnerability, upgrade all affected Github.com/stacklok/minder dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/stacklok/minder to 0.0.40
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/stacklok/minder
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-31455, inspect your project dependencies for Github.com/stacklok/minder:
inspect dependencies for github.com/stacklok/minder
Analyze the terminal output to locate any version of Github.com/stacklok/minder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.40), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Github.com/stacklok/minder, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-31455 Affected Github.com/stacklok/minder Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/stacklok/minder
|
Go |
≥ 0.0.39
< 0.0.40
All 1 versions
0.0.39
|
0.0.40
|
References
Frequently Asked Questions
What is CVE-2024-31455?
Which Github.com/stacklok/minder versions are affected?
What version fixes CVE-2024-31455?
Is github.com/stacklok/minder affected?
What is the CVSS score of CVE-2024-31455?
What CWE is associated with CVE-2024-31455?
How can I check Go dependencies for CVE-2024-31455?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ggp5-28x4-xcj9",
"modified" : "2024-04-09T21:12:27Z",
"published" : "2024-04-09T16:18:02Z",
"aliases" : [ "CVE-2024-31455" ],
"summary" : "Minder GetRepositoryByName data leak",
"details" : "### Impact\nA recent refactoring 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.\n\n### Patches\nPatched in #2941\n\n### Workarounds\nRevert prior to `5c381cf`, or roll forward past `2eb94e7`\n\n### References\nN/A",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/stacklok/minder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.39"
}, {
"fixed" : "0.0.40"
} ]
} ],
"versions" : [ "0.0.39" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/stacklok/minder/security/advisories/GHSA-ggp5-28x4-xcj9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-31455"
}, {
"type" : "WEB",
"url" : "https://github.com/stacklok/minder/pull/2941"
}, {
"type" : "WEB",
"url" : "https://github.com/stacklok/minder/commit/11b6573ad62cfdd783a8bb52f3fce461466037f4"
}, {
"type" : "WEB",
"url" : "https://github.com/stacklok/minder/commit/5c381cfbf3e4b7ce040ed8511a1fae1a78a0014b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/stacklok/minder"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-09T16:18:02Z",
"nvd_published_at" : "2024-04-09T17:16:03Z"
}
}