CVE-2023-46742: Github.com/cubefs/cubefs CubeFS Leaks Users Key Vulnerability

MODERATE
Advisory Identifier: GHSA-vwch-g97w-hfg2
CVSS 4.8
CWE-532
Published
Advisory Summary

CVE-2023-46742 is a MODERATE (CVSS 4.8) cubefs leaks users key vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/cubefs/cubefs libraries in the Go ecosystem. The issue involves cubefs leaks users key in logs. Remediation is available by upgrading affected packages to version 3.3.1.

CVE-2023-46742 at a Glance

CVE Identifier CVE-2023-46742
GHSA Identifier GHSA-vwch-g97w-hfg2
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/cubefs/cubefs
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2023-46742

To remediate this vulnerability, upgrade all affected Github.com/cubefs/cubefs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/cubefs/cubefs fixed: 3.3.1
Upgrade github.com/cubefs/cubefs to 3.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/cubefs/cubefs

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-46742, inspect your project dependencies for Github.com/cubefs/cubefs:

inspect dependencies for github.com/cubefs/cubefs

Analyze the terminal output to locate any version of Github.com/cubefs/cubefs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/cubefs/cubefs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

CubeFS was found to leak users secret keys and access keys in the logs in multiple components. When CubeCS creates new users, it leaks the users secret key. This could allow a lower-privileged user with access to the logs to retrieve sensitive information and impersonate other users with higher privileges than themselves. 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](https://adalogics.com/) in collaboration with [OSTIF](https://ostif.org/) and the [CNCF](https://www.cncf.io/). The issue has been patched in v3.3.1. There is no other mitigation than upgrading CubeFS.

CVE-2023-46742 Affected Github.com/cubefs/cubefs Versions

1 component(s)
Fixed Versions:
3.3.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cubefs/cubefs
Go
< 3.3.1
3.3.1

References

Frequently Asked Questions

What is CVE-2023-46742?
CVE-2023-46742 is a security vulnerability in Github.com/cubefs/cubefs involving CubeFS leaks users key in logs under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/cubefs/cubefs versions are affected?
Affected versions include releases prior to 3.3.1 across affected packages: github.com/cubefs/cubefs.
What version fixes CVE-2023-46742?
Upgrading to 3.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cubefs/cubefs affected?
Yes, github.com/cubefs/cubefs is affected in releases prior to 3.3.1. Upgrade your dependency to 3.3.1 or later.
What is the CVSS score of CVE-2023-46742?
CVE-2023-46742 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2023-46742?
CVE-2023-46742 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2023-46742?
Run the dependency tree command: 'inspect dependencies for github.com/cubefs/cubefs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vwch-g97w-hfg2",
  "modified" : "2024-07-08T19:36:05Z",
  "published" : "2024-01-03T16:14:54Z",
  "aliases" : [ "CVE-2023-46742" ],
  "summary" : "CubeFS leaks users key in logs",
  "details" : "CubeFS was found to leak users secret keys and access keys in the logs in multiple components.  When CubeCS creates new users, it leaks the users secret key. This could allow a lower-privileged user with access to the logs to retrieve sensitive information and impersonate other users with higher privileges than themselves. \n\nThere is no evidence of this vulnerability being exploited in the wild. It was found during an ongoing security audit carried out by [Ada Logics](https://adalogics.com/) in collaboration with [OSTIF](https://ostif.org/) and the [CNCF](https://www.cncf.io/).\n\nThe issue has been patched in v3.3.1. There is no other mitigation than upgrading CubeFS.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cubefs/cubefs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cubefs/cubefs/security/advisories/GHSA-vwch-g97w-hfg2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46742"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cubefs/cubefs/commit/8dccce6ac8dff3db44d7e9074094c7303a5ff5dd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cubefs/cubefs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T16:14:54Z",
    "nvd_published_at" : "2024-01-03T17:15:11Z"
  }
}