CVE-2023-46738: Github.com/cubefs/cubefs Authenticated Users Can Crash The Vulnerability

HIGH
Advisory Identifier: GHSA-qc6v-g3xw-grmx
CVSS 6.5
CWE-770
Published
Advisory Summary

CVE-2023-46738 is a HIGH (CVSS 6.5) authenticated users can crash the vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/cubefs/cubefs libraries in the Go ecosystem. The issue involves authenticated users can crash the cubefs servers with maliciously crafted requests. Remediation is available by upgrading affected packages to version 3.3.1.

CVE-2023-46738 at a Glance

CVE Identifier CVE-2023-46738
GHSA Identifier GHSA-qc6v-g3xw-grmx
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Github.com/cubefs/cubefs
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-46738

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-46738, 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. 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

A security vulnerability was found in CubeFS HandlerNode that could allow authenticated users to send maliciously-crafted requests that would crash the ObjectNode and deny other users from using it. The root cause was improper handling of incoming HTTP requests that could allow an attacker to control the ammount of memory that the ObjectNode would allocate. A malicious request could make the ObjectNode allocate more memory that the machine had available, and the attacker could exhaust memory by way of a single malicious request. An attacker would need to be authenticated in order to invoke the vulnerable code with their malicious request and have permissions to delete objects. In addition, the attacker would need to know the names of existing buckets of the CubeFS deployment - otherwise the request would be rejected before it reached the vulnerable code. As such, the most likely attacker is an inside user or an attacker that has breached the account of an existing user in the cluster. There is no evidence of this attack being exploited in the wild. The vulnerability 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 patched in v3.3.1. There is no other mitigation besides upgrading.

CVE-2023-46738 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-46738?
CVE-2023-46738 is a security vulnerability in Github.com/cubefs/cubefs involving Authenticated users can crash the CubeFS servers with maliciously crafted requests under CWE-770: Allocation of Resources Without Limits or Throttling.
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-46738?
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-46738?
CVE-2023-46738 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-46738?
CVE-2023-46738 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2023-46738?
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-qc6v-g3xw-grmx",
  "modified" : "2024-11-18T16:26:34Z",
  "published" : "2024-01-03T16:13:33Z",
  "aliases" : [ "CVE-2023-46738" ],
  "summary" : "Authenticated users can crash the CubeFS servers with maliciously crafted requests",
  "details" : "A security vulnerability was found in CubeFS HandlerNode that could allow authenticated users to send maliciously-crafted requests that would crash the ObjectNode and deny other users from using it. The root cause was improper handling of incoming HTTP requests that could allow an attacker to control the ammount of memory that the ObjectNode would allocate. A malicious request could make the ObjectNode allocate more memory that the machine had available, and the attacker could exhaust memory by way of a single malicious request.\n\nAn attacker would need to be authenticated in order to invoke the vulnerable code with their malicious request and have permissions to delete objects. In addition, the attacker would need to know the names of existing buckets of the CubeFS deployment - otherwise the request would be rejected before it reached the vulnerable code. As such, the most likely attacker is an inside user or an attacker that has breached the account of an existing user in the cluster. There is no evidence of this attack being exploited in the wild. The vulnerability 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/).\n\nThe issue has been patched in v3.3.1. There is no other mitigation besides upgrading. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/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-qc6v-g3xw-grmx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46738"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cubefs/cubefs/commit/dd46c24873c8f3df48d0a598b704ef9bd24b1ec1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cubefs/cubefs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T16:13:33Z",
    "nvd_published_at" : "2024-01-03T16:15:08Z"
  }
}