{"answers":{"affected":"3 open source packages ship an affected version, including github.com/cubefs/cubefs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-46742 in the wild and no public exploit code.","fix":"Upgrade github.com/cubefs/cubefs to 3.3.1 or later.","what":"CVE-2023-46742 is a medium-severity vulnerability in cubefs, published on 3 Jan 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-46742 and fix it if it is affected.\n\nWhat it is: CVE-2023-46742 is a medium-severity vulnerability in cubefs, published on 3 Jan 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-46742 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cubefs/cubefs (Go): affected all versions; no fix listed\n- github.com/cubefs/cubefs (Go): affected all versions; fixed in 3.3.1\n- github.com/cubefs/cubefs (Go): affected all versions; fixed in 3.3.1\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-46742/ (Markdown: https://insights.sbomify.com/CVE-2023-46742/index.md)","id":"CVE-2023-46742","markdown":"https://insights.sbomify.com/CVE-2023-46742/index.md","name":"CVE-2023-46742","record":{"aliases":["GHSA-vwch-g97w-hfg2","GO-2024-2434"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Cloud-native file storage","requires_auth":"low_privilege","summary":"CubeFS leaks user secret keys in logs, allowing lower-privileged users to impersonate higher-privileged users by accessing log files.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cubefs","vendor":"linuxfoundation"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"description":"CubeFS is an open-source cloud-native file storage system. CubeFS prior to version 3.3.1 was found to leak users secret keys and access keys in the logs in multiple components. When CubeCS creates new users, it leaks the users secret key. This could allow a lower-privileged user with access to the logs to retrieve sensitive information and impersonate other users with higher privileges than themselves. The issue has been patched in v3.3.1. There is no other mitigation than upgrading CubeFS.","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":"CubeFS leaks users key in logs","id":"CVE-2023-46742","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"The same file cannot be opened with different rights","id":"CVE-2023-46743"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/cubefs/cubefs","purl":"pkg:golang/github.com/cubefs/cubefs","source":"GO-2024-2434"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cubefs/cubefs","purl":null,"source":"GHSA-vwch-g97w-hfg2"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cubefs/cubefs","purl":"pkg:golang/github.com/cubefs/cubefs","source":"GHSA-vwch-g97w-hfg2"}],"prev":{"headline":"CubeFS leaks magic secret key when starting Blobstore access service","id":"CVE-2023-46741"},"products":["cubefs"],"published":"2024-01-03","related":[{"cvss_score":6.5,"headline":"Authenticated users can crash the CubeFS servers with maliciously crafted requests","id":"CVE-2023-46738","kev_date_added":null,"published":"2024-01-03"},{"cvss_score":6.5,"headline":"Timing attack can leak user passwords","id":"CVE-2023-46739","kev_date_added":null,"published":"2024-01-03"},{"cvss_score":6.5,"headline":"Insecure random string generator used for sensitive data","id":"CVE-2023-46740","kev_date_added":null,"published":"2024-01-03"},{"cvss_score":6.5,"headline":"CubeFS allows Kubernetes cluster-level privilege escalation","id":"CVE-2023-30512","kev_date_added":null,"published":"2023-04-12"},{"cvss_score":4.8,"headline":"CubeFS leaks magic secret key when starting Blobstore access service","id":"CVE-2023-46741","kev_date_added":null,"published":"2024-01-03"}],"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":"2025-06-03","vendors":["cubefs"]},"summary":"CubeFS leaks user secret keys in logs, allowing lower-privileged users to impersonate higher-privileged users by accessing log files.","url":"https://insights.sbomify.com/CVE-2023-46742/"}