{"answers":{"affected":"3 open source packages ship an affected version, including github.com/artifacthub/hub. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-45822 in the wild and no public exploit code.","fix":"Upgrade github.com/artifacthub/hub to 1.16.0 or later.","what":"CVE-2023-45822 is a low-severity server-side request forgery vulnerability in artifacthub hub, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-45822 and fix it if it is affected.\n\nWhat it is: CVE-2023-45822 is a low-severity server-side request forgery vulnerability in artifacthub hub, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-45822 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/artifacthub/hub (Go): affected all versions; fixed in 1.16.0\n- github.com/artifacthub/hub (Go): affected all versions; fixed in 1.16.0\n- github.com/artifacthub/hub (Go): affected all versions; fixed in 1.16.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-45822/ (Markdown: https://insights.sbomify.com/CVE-2023-45822/index.md)","id":"CVE-2023-45822","markdown":"https://insights.sbomify.com/CVE-2023-45822/index.md","name":"CVE-2023-45822","record":{"aliases":["GHSA-9pc8-m4vp-ggvf","GO-2023-2134"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Artifact Hub","requires_auth":"none","summary":"Attackers can exploit unsafe Rego policies to perform Server-Side Request Forgery, accessing internal resources and exfiltrating data.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hub","vendor":"artifacthub"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Unsafe rego built-in allowed in Artifact Hub","id":"CVE-2023-45822","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"ssrf","year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"Arbitrary file read in Artifact Hub","id":"CVE-2023-45823"},"packages":[{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":null,"source":"GHSA-9pc8-m4vp-ggvf"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":"pkg:golang/github.com/artifacthub/hub","source":"GHSA-9pc8-m4vp-ggvf"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":"pkg:golang/github.com/artifacthub/hub","source":"GO-2023-2134"}],"prev":{"headline":"Incorrect Docker Hub registry check in Artifact Hub","id":"CVE-2023-45821"},"products":["hub"],"published":"2023-10-19","related":[{"cvss_score":7.5,"headline":"Arbitrary file read in Artifact Hub","id":"CVE-2023-45823","kev_date_added":null,"published":"2023-10-19"},{"cvss_score":5.4,"headline":"Incorrect Docker Hub registry check in Artifact Hub","id":"CVE-2023-45821","kev_date_added":null,"published":"2023-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["artifacthub"]},"summary":"Attackers can exploit unsafe Rego policies to perform Server-Side Request Forgery, accessing internal resources and exfiltrating data.","url":"https://insights.sbomify.com/CVE-2023-45822/"}