{"id":"CVE-2023-45822","published":"2023-10-19T20:53:36Z","modified":"2024-09-12T17:45:57Z","title":"Unsafe rego built-in allowed in Artifact Hub","vendor":"artifacthub","product":"hub","tier":"tail","description":{"text":"Artifact Hub is a web-based application that enables finding, installing, and publishing packages and configurations for CNCF projects. During a security audit of Artifact Hub's code base a security researcher identified a bug in which a default unsafe rego built-in was allowed to be used when defining authorization policies. Artifact 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`. Policies are written using `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. This issue has been resolved in version `1.16.0`. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0064,"percentile":0.51603,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/artifacthub/hub/security/advisories/GHSA-9pc8-m4vp-ggvf","tags":["x_refsource_CONFIRM"]},{"url":"https://artifacthub.io/packages/helm/artifact-hub/artifact-hub?modal=changelog&version=1.16.0","tags":["x_refsource_MISC"]},{"url":"https://www.openpolicyagent.org/","tags":["x_refsource_MISC"]},{"url":"https://www.openpolicyagent.org/docs/latest/#rego","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":10.32},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"artifacthub","affectedVersions":[{"vendor":"artifacthub","product":"hub","versions":["< 1.16.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-12T17:37:04.681787Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/artifacthub/hub","vulnerableRanges":["<1.16.0"],"patched":["1.16.0"],"from":["GHSA-9pc8-m4vp-ggvf","GO-2023-2134"],"provenance":"source"}],"summary":{"text":"Artifact Hub's hub product has a flaw in its fine-grained authorization mechanism, where the default Open Policy Agent rego built-in that allows HTTP requests was left enabled when evaluating organization-defined authorization policies. An attacker with network access and no authentication can craft a policy to make the server send requests to internal resources and relay the responses externally, though exploiting this requires a high-complexity attack condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:03Z"},"euvd":{"id":"EUVD-2023-2711","exploited":false,"provenance":"source"}}