---
id: CVE-2023-46740
aliases:
  - GHSA-4248-p65p-hcrm
  - GO-2024-2431
title: Insecure random string generator used for sensitive data
summary: Insecure random string generator used for sensitive data
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L'
vendor: cubefs
product: github.com/cubefs/cubefs
ecosystem: go
affected:
  - github.com/cubefs/cubefs < 3.3.1
patched:
  - github.com/cubefs/cubefs 3.3.1
published: '2024-01-03'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:04.702917631Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-4248-p65p-hcrm'
references:
  - url: 'https://github.com/cubefs/cubefs/security/advisories/GHSA-4248-p65p-hcrm'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-46740'
  - url: >-
      https://github.com/cubefs/cubefs/commit/8555c6402794cabdf2cc025c8bea1576122c07ba
  - url: 'https://github.com/cubefs/cubefs'
tags:
  - osv
  - go
epss: 0.00439
epssPercentile: 0.35479
ingestedAt: '2026-09-12T03:13:01.750Z'
---

## Overview

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](https://adalogics.com/) in collaboration with [OSTIF](https://ostif.org/) and the [CNCF](https://www.cncf.io/).

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

## Affected packages

- `github.com/cubefs/cubefs < 3.3.1`

## Remediation

Upgrade to a patched release:

- `github.com/cubefs/cubefs 3.3.1`
