{"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-46740 in the wild and no public exploit code.","fix":"Upgrade github.com/cubefs/cubefs to 3.3.1 or later.","what":"CVE-2023-46740 is a medium-severity vulnerability in cubefs, published on 3 Jan 2024. 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-46740 and fix it if it is affected.\n\nWhat it is: CVE-2023-46740 is a medium-severity vulnerability in cubefs, published on 3 Jan 2024. 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-46740 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-46740/ (Markdown: https://insights.sbomify.com/CVE-2023-46740/index.md)","id":"CVE-2023-46740","markdown":"https://insights.sbomify.com/CVE-2023-46740/index.md","name":"CVE-2023-46740","record":{"aliases":["GHSA-4248-p65p-hcrm","GO-2024-2431"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Cloud-native file storage","requires_auth":"none","summary":"Attackers can predict user access keys due to insecure random generation, allowing them to impersonate users and gain higher privileges in CubeFS deployments.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cubefs","vendor":"linuxfoundation"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"}],"description":"CubeFS is an open-source cloud-native file storage system. Prior to version 3.3.1, CubeFS used an insecure random string generator to generate user-specific, sensitive keys used to authenticate users in a CubeFS deployment. This could allow an attacker to predict and/or guess the generated string and impersonate a user thereby obtaining higher privileges. When CubeFS creates new users, it creates a piece of sensitive information for the user called the “accessKey”. To create the \"accesKey\", CubeFS uses an insecure string generator which makes it easy to guess and thereby impersonate the created user. An attacker could leverage the predictable random string generator and guess a users access key and impersonate the user to obtain higher privileges. The issue has been fixed in v3.3.1. There is no other mitigation than to upgrade.","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":"Insecure random string generator used for sensitive data","id":"CVE-2023-46740","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"CubeFS leaks magic secret key when starting Blobstore access service","id":"CVE-2023-46741"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/cubefs/cubefs","purl":"pkg:golang/github.com/cubefs/cubefs","source":"GO-2024-2431"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cubefs/cubefs","purl":null,"source":"GHSA-4248-p65p-hcrm"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cubefs/cubefs","purl":"pkg:golang/github.com/cubefs/cubefs","source":"GHSA-4248-p65p-hcrm"}],"prev":{"headline":"Timing attack can leak user passwords","id":"CVE-2023-46739"},"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":"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"},{"cvss_score":4.8,"headline":"CubeFS leaks users key in logs","id":"CVE-2023-46742","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":"total"},"state":"PUBLISHED","updated":"2025-06-17","vendors":["cubefs"]},"summary":"Attackers can predict user access keys due to insecure random generation, allowing them to impersonate users and gain higher privileges in CubeFS deployments.","url":"https://insights.sbomify.com/CVE-2023-46740/"}