CVE-2024-31455: Github.com/stacklok/minder Minder GetRepositoryByName Data Leak Vulnerability

MODERATE
Advisory Identifier: GHSA-ggp5-28x4-xcj9
CVSS 4.3
CWE-200
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-31455
GHSA Identifier GHSA-ggp5-28x4-xcj9
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Github.com/stacklok/minder
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

github.com/stacklok/minder fixed: 0.0.40
Upgrade github.com/stacklok/minder to 0.0.40
Verify Direct and Transitive Dependencies

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

### Impact A 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. ### Patches Patched in #2941 ### Workarounds Revert prior to `5c381cf`, or roll forward past `2eb94e7` ### References N/A

CVE-2024-31455 Affected Github.com/stacklok/minder Versions

1 component(s)
Fixed Versions:
0.0.40
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?
CVE-2024-31455 is a security vulnerability in Github.com/stacklok/minder involving Minder GetRepositoryByName data leak under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Github.com/stacklok/minder versions are affected?
Affected versions include releases prior to 0.0.40 across affected packages: github.com/stacklok/minder.
What version fixes CVE-2024-31455?
Upgrading to 0.0.40 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/stacklok/minder affected?
Yes, github.com/stacklok/minder is affected in releases prior to 0.0.40. Upgrade your dependency to 0.0.40 or later.
What is the CVSS score of CVE-2024-31455?
CVE-2024-31455 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-31455?
CVE-2024-31455 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2024-31455?
Run the dependency tree command: 'inspect dependencies for github.com/stacklok/minder'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}