{"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-45823 in the wild and no public exploit code.","fix":"Upgrade github.com/artifacthub/hub to 1.16.0 or later.","what":"CVE-2023-45823 is a high-severity path traversal 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-45823 and fix it if it is affected.\n\nWhat it is: CVE-2023-45823 is a high-severity path traversal 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-45823 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-45823/ (Markdown: https://insights.sbomify.com/CVE-2023-45823/index.md)","id":"CVE-2023-45823","markdown":"https://insights.sbomify.com/CVE-2023-45823/index.md","name":"CVE-2023-45823","record":{"aliases":["GHSA-hmq4-c2r4-5q8h","GO-2023-2136"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Artifact Hub","requires_auth":"none","summary":"Attackers can read arbitrary internal files via symbolic links in indexed repositories, potentially leaking sensitive information.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hub","vendor":"artifacthub"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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 by using symbolic links in certain kinds of repositories loaded into Artifact Hub, it was possible to read internal files. Artifact Hub indexes content from a variety of sources, including git repositories. When processing git based repositories, Artifact Hub clones the repository and, depending on the artifact kind, reads some files from it. During this process, in some cases, no validation was done to check if the file was a symbolic link. This made possible to read arbitrary files in the system, potentially leaking sensitive information. 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":"Arbitrary file read in Artifact Hub","id":"CVE-2023-45823","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"OroPlatform's pinned entity creation form shows pages of other users","id":"CVE-2023-45824"},"packages":[{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":null,"source":"GHSA-hmq4-c2r4-5q8h"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":"pkg:golang/github.com/artifacthub/hub","source":"GHSA-hmq4-c2r4-5q8h"},{"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-2136"}],"prev":{"headline":"Unsafe rego built-in allowed in Artifact Hub","id":"CVE-2023-45822"},"products":["hub"],"published":"2023-10-19","related":[{"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"},{"cvss_score":3.7,"headline":"Unsafe rego built-in allowed in Artifact Hub","id":"CVE-2023-45822","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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["artifacthub"]},"summary":"Attackers can read arbitrary internal files via symbolic links in indexed repositories, potentially leaking sensitive information.","url":"https://insights.sbomify.com/CVE-2023-45823/"}