MediumGHSA-8h2x-gr2c-c275CVE-2023-46741GO-2024-2433

CubeFS leaks magic secret key when starting Blobstore access service

Published 3 Jan 2024 · Updated 8 Jul 2024

Is your project on an affected github.com/cubefs/cubefs?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<3.3.1
Fixed in
3.3.1
Update to the fixed version for your release line, for example:go get github.com/cubefs/cubefs@v3.3.1

Details

A vulnerability was found in CubeFS that could allow users to read sensitive data from the logs which could allow them escalate privileges.

CubeFS leaks configuration keys in plaintext format in the logs. These keys could allow anyone to carry out operations on blobs that they otherwise do not have permissions for. For example, an attacker that has succesfully retrieved a secret key from the logs can delete blogs from the blob store.

The attacker can either be an internal user with limited privileges to read the log, or it can be an external user who has escalated privileges sufficiently to access the logs. There is no evidence of this vulnerability being exploited in the wild. It was found during an ongoing security audit carried out by Ada Logics in collaboration with OSTIF and the CNCF.

The vulnerability has been patched in v3.3.1. There is no other mitigated than upgrading.

Is GHSA-8h2x-gr2c-c275 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/cubefs/cubefs, and gives you the command that fixes it.

More advisories for github.com/cubefs/cubefs

  • LowCVE-2023-46738Authenticated users can crash the CubeFS servers with maliciously crafted requests in github.com/cubefs/cubefs · 28 Jun 2024
  • LowCVE-2023-46740Insecure random string generator used for sensitive data in github.com/cubefs/cubefs · 28 Jun 2024
  • LowCVE-2023-46739CubeFS timing attack can leak user passwords in github.com/cubefs/cubefs · 28 Jun 2024
  • LowCVE-2023-46742CubeFS leaks users key in logs in github.com/cubefs/cubefs · 28 Jun 2024
  • MediumCVE-2023-46742CubeFS leaks users key in logs · 3 Jan 2024
  • HighCVE-2023-46740Insecure random string generator used for sensitive data · 3 Jan 2024
All 10 advisories for github.com/cubefs/cubefs

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.