Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/stacklok/minder
  4. ›
  5. CVE-2024-27916

CVE-2024-27916: `GetRepositoryByName`, `DeleteRepositoryByName` and `GetArtifactByName` allow access of arbitrary repositories in Minder by any authenticated user

March 5, 2024

Summary

A Minder user can use the endpoints listed in the issue title to access any repository in the DB, irrespective of who owns the repo and any permissions that user may have.

Details

The DB query used here checks by repo owner, repo name and provider name (which is always “github”). These query values are not distinct for the particular user - as long as the user has valid credentials and a provider, they can set the repo owner/name to any value they want and the server will return information on this repo.

DeleteRepositoryByName uses the same query and I have been able to delete another user’s repo using this technique.

The GetArtifactByName endpoint also uses this DB query. I have not reproduced the behaviour with this endpoint due to a lack of a suitable test case, but I do not see anything in the implementation of the endpoint to prevent it being exploited.

References

  • github.com/advisories/GHSA-v627-69v2-xx37
  • github.com/stacklok/minder
  • github.com/stacklok/minder/commit/45750b4e9fb2de33365758366e06c19e999bd2eb
  • github.com/stacklok/minder/security/advisories/GHSA-v627-69v2-xx37
  • nvd.nist.gov/vuln/detail/CVE-2024-27916

Code Behaviors & Features

Detect and mitigate CVE-2024-27916 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.33

Fixed versions

  • 0.0.33

Solution

Upgrade to version 0.0.33 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

go/github.com/stacklok/minder/CVE-2024-27916.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.