Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cubefs/cubefs
  4. ›
  5. CVE-2023-46740

CVE-2023-46740: Insecure random string generator used for sensitive data

January 3, 2024 (updated November 18, 2024)

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.

There is no evidence of this vulnerability being exploited in the wild. It was found during a security audit carried out by Ada Logics in collaboration with OSTIF and the CNCF.

The issue has been fixed in v3.3.1. There is no other mitigation than to upgrade.

References

  • github.com/advisories/GHSA-4248-p65p-hcrm
  • github.com/cubefs/cubefs
  • github.com/cubefs/cubefs/commit/8555c6402794cabdf2cc025c8bea1576122c07ba
  • github.com/cubefs/cubefs/security/advisories/GHSA-4248-p65p-hcrm
  • nvd.nist.gov/vuln/detail/CVE-2023-46740

Code Behaviors & Features

Detect and mitigate CVE-2023-46740 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.3.1

Fixed versions

  • 3.3.1

Solution

Upgrade to version 3.3.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-330: Use of Insufficiently Random Values

Source file

go/github.com/cubefs/cubefs/CVE-2023-46740.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:13 +0000.