Skip to content
Heist/ feed
Back to feed
Medium

Insecure random string generator used for sensitive data

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-46740
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:19 UTC · Revision 1

Source evidence

Insecure random string generator used for sensitive data

core-osv · Original source

Published 3 Jan 2024, 16:20 UTC

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.

osv:CVE-2023-46740
Complete source record
{
  "id": "9dac165dcd222acc660b8fc25a4be3f6b5a5278921bed4ee5c3ae39b9a5be45e",
  "url": "https://osv.dev/vulnerability/CVE-2023-46740",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Insecure random string generator used for sensitive data",
    "summary": "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.",
    "evidence": "osv:CVE-2023-46740",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-46740",
      "aliases": [
        "CVE-2023-46740",
        "GHSA-4248-p65p-hcrm",
        "GO-2024-2431"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cubefs/cubefs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "84795afb21a64e92db9e53fb88d33410ac3c49c0"
                },
                {
                  "fixed": "8555c6402794cabdf2cc025c8bea1576122c07ba"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:cubefs:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.3.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8555c6402794cabdf2cc025c8bea1576122c07ba"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.3.0",
            "v3.2.1",
            "v3.2.0",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.0",
            "v2.5.0-rc.0",
            "v2.4.0-rc.0",
            "v2.3.0-rc.1",
            "v2.2.2",
            "v2.2.1",
            "v2.2.0",
            "v2.1.0",
            "v2.1.0-rc.1",
            "v2.0.0",
            "v2.0.0-rc.1",
            "v1.5.1",
            "v1.5.0",
            "v1.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-46740.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.096493602Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46740.json",
        "https://github.com/cubefs/cubefs/security/advisories/GHSA-4248-p65p-hcrm",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-46740",
        "https://github.com/cubefs/cubefs/commit/8555c6402794cabdf2cc025c8bea1576122c07ba"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-330"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46740.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-46740",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493733,
  "published_at": "2024-01-03T16:20:18.619+00:00"
}