CVE-2024-27093: Github.com/stacklok/minder Minder Trusts Client-provided Mapping From Vulnerability
MODERATECVE-2024-27093 is a MODERATE (CVSS 4.6) minder trusts client-provided mapping from vulnerability (CWE-20: Improper Input Validation) affecting Github.com/stacklok/minder libraries in the Go ecosystem. The issue involves minder trusts client-provided mapping from repo name to upstream id. Remediation is available by upgrading affected packages to version 0.20240226.1425.
CVE-2024-27093 at a Glance
Security Impact
CVSS: 4.6
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:R/S:U/C:N/I:L/A:L).
How to Fix CVE-2024-27093
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.20240226.1425
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-27093, 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.20240226.1425), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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-27093 Affected Github.com/stacklok/minder Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/stacklok/minder
|
Go |
< 0.20240226.1425
|
0.20240226.1425
|
References
Frequently Asked Questions
What is CVE-2024-27093?
Which Github.com/stacklok/minder versions are affected?
What version fixes CVE-2024-27093?
Is github.com/stacklok/minder affected?
What is the CVSS score of CVE-2024-27093?
What CWE is associated with CVE-2024-27093?
How can I check Go dependencies for CVE-2024-27093?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q6h8-4j2v-pjg4",
"modified" : "2025-02-05T21:19:41Z",
"published" : "2024-02-26T22:15:45Z",
"aliases" : [ "CVE-2024-27093" ],
"summary" : "Minder trusts client-provided mapping from repo name to upstream ID",
"details" : "### Summary\n\nWhen using a modified client or the grpc interface directly, the `RegisterRepository` call accepts _both_ the repository owner / repo **and** the repo_id. Furthermore, these two are not checked for matching before registering webhooks and data in the database.\n\n### Details\n\nIt is possible for an attacker to register a repository with a invalid or differing upstream ID, which causes Minder to report the repository as registered, but not remediate any future changes which conflict with policy (because the webhooks for the repo do not match any known repository in the database). When attempting to register a repo with a different repo ID, the registered provider must have admin on the named repo, or a 404 error will result. Similarly, if the stored provider token does not have repo access, then the remediations will not apply successfully. Lastly, it appears that reconciliation actions do not execute against repos with this type of mismatch.\n\n### PoC\n\nWith an RPC like the following text proto:\n\n```\ncontext {\n ...\n}\nrepository {\n owner: \"Stacklok-Demo-Org\"\n repo: \"python-app\"\n # repo_id is defaulted to 0\n}\n```\n\nI was able to produce the following `minder` output:\n\n```\n+--------------------------------------+--------------------------------------+----------+-------------+-------------------+------------+\n| ID | PROJECT | PROVIDER | UPSTREAM ID | OWNER | NAME |\n+--------------------------------------+--------------------------------------+----------+-------------+-------------------+------------+\n| da3acba4-ef66-4d9b-b41e-250869107fd5 | f9f4aef0-74af-4909-a0c3-0e8ac7fbc38d | github | 0 | Stacklok-Demo-Org | python-app |\n+--------------------------------------+--------------------------------------+----------+-------------+-------------------+------------+\n| 7cf8f7b8-b19b-40dd-a96b-b88bb1ef5563 | f9f4aef0-74af-4909-a0c3-0e8ac7fbc38d | github | 762029128 | evankanderson | bad-python |\n+--------------------------------------+--------------------------------------+----------+-------------+-------------------+------------+\n```\n\n```\n$ gh api repos/Stacklok-Demo-Org/python-app | jq .id \n762029128\n```\n\nI've registered bad-python with the ID of python-app, and python-app with an ID of 0.\n\n### Impact\n\nThis appears to primarily be a potential denial-of-service vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/stacklok/minder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.20240226.1425"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/stacklok/minder/security/advisories/GHSA-q6h8-4j2v-pjg4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27093"
}, {
"type" : "WEB",
"url" : "https://github.com/stacklok/minder/commit/53868a878e93f29c43437f96dbc990b548e48d1d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/stacklok/minder"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2024-2582"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-26T22:15:45Z",
"nvd_published_at" : "2024-02-26T22:15:07Z"
}
}