{"id":"GHSA-9pc8-m4vp-ggvf","summary":"Artifact Hub allows unsafe rego built-in","details":"### Impact\n\nDuring a security audit of Artifact Hub's code base, a security researcher at [OffSec](https://www.offsec.com/) identified a bug in which a default unsafe rego built-in was allowed to be used when defining authorization policies.\n\nArtifact Hub includes a fine-grained authorization mechanism that allows organizations to define what actions can be performed by their members. It is based on customizable authorization policies that are enforced by the [Open Policy Agent](https://www.openpolicyagent.org/). Policies are written using [rego](https://www.openpolicyagent.org/docs/latest/#rego) and their data files are expected to be json documents. By default, `rego` allows policies to make HTTP requests, which can be abused to send requests to internal resources and forward the responses to an external entity. In the context of Artifact Hub, this capability should have been disabled.\n\n### Patches\n\nThis issue has been resolved in version [1.16.0](https://artifacthub.io/packages/helm/artifact-hub/artifact-hub?modal=changelog&version=1.16.0).","aliases":["CVE-2023-45822","GO-2023-2134"],"modified":"2024-08-21T14:56:49.098837Z","published":"2023-10-19T17:05:16Z","database_specific":{"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2023-10-19T17:05:16Z","nvd_published_at":"2023-10-19T21:15:08Z","cwe_ids":["CWE-918"]},"references":[{"type":"WEB","url":"https://github.com/artifacthub/hub/security/advisories/GHSA-9pc8-m4vp-ggvf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45822"},{"type":"WEB","url":"https://artifacthub.io/packages/helm/artifact-hub/artifact-hub?modal=changelog&version=1.16.0"},{"type":"PACKAGE","url":"https://github.com/artifacthub/hub"},{"type":"WEB","url":"https://www.openpolicyagent.org"},{"type":"WEB","url":"https://www.openpolicyagent.org/docs/latest/#rego"}],"affected":[{"package":{"name":"github.com/artifacthub/hub","ecosystem":"Go","purl":"pkg:golang/github.com/artifacthub/hub"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.16.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-9pc8-m4vp-ggvf/GHSA-9pc8-m4vp-ggvf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}