CVE-2023-30840: Github.com/fluid cloudnative/fluid On A Compromised Node, The Vulnerability
MODERATECVE-2023-30840 is a MODERATE (CVSS 4.0) on a compromised node, the vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/fluid cloudnative/fluid libraries in the Go ecosystem. The issue involves on a compromised node, the fluid-csi service account can be used to modify node specs. Remediation is available by upgrading affected packages to version 0.8.6.
CVE-2023-30840 at a Glance
Security Impact
CVSS: 4.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N).
How to Fix CVE-2023-30840
To remediate this vulnerability, upgrade all affected Github.com/fluid cloudnative/fluid dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/fluid-cloudnative/fluid to 0.8.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/fluid-cloudnative/fluid
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-30840, inspect your project dependencies for Github.com/fluid cloudnative/fluid:
inspect dependencies for github.com/fluid-cloudnative/fluid
Analyze the terminal output to locate any version of Github.com/fluid cloudnative/fluid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.6), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/fluid cloudnative/fluid, 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
CVE-2023-30840 Affected Github.com/fluid cloudnative/fluid Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/fluid-cloudnative/fluid
|
Go |
≥ 0.7.0
< 0.8.6
|
0.8.6
|
References
Frequently Asked Questions
What is CVE-2023-30840?
Which Github.com/fluid cloudnative/fluid versions are affected?
What version fixes CVE-2023-30840?
Is github.com/fluid-cloudnative/fluid affected?
What is the CVSS score of CVE-2023-30840?
What CWE is associated with CVE-2023-30840?
How can I check Go dependencies for CVE-2023-30840?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-93xx-cvmc-9w3v",
"modified" : "2023-05-09T19:58:47Z",
"published" : "2023-05-09T19:58:47Z",
"aliases" : [ "CVE-2023-30840" ],
"summary" : "On a compromised node, the fluid-csi service account can be used to modify node specs",
"details" : "### Impact\n\nIf a malicious user gains control of a Kubernetes node running fluid csi pod (controlled by the `csi-nodeplugin-fluid` node-daemonset), he/she can leverage the fluid-csi service account to modify specs of all the nodes in the cluster. However, since this service account lacks \"list node\" permissions, the attacker may need to use other techniques to identify vulnerable nodes.\n\nOnce the attacker identifies and modifies the node specs, he/she can manipulate system-level-privileged components to access all secrets in the cluster or execute pods on other nodes. This allows he/she to elevate privileges beyond the compromised node and potentially gain full privileged access to the whole cluster.\n\nTo exploit this vulnerability, the attacker can make all other nodes unschedulable (for example, patch node with taints) and wait for system-critical components with high privilege to appear on the compromised node. However, this attack requires two prerequisites: a compromised node and identifying all vulnerable nodes through other means. Additionally, since the attack is passive and requires patience and luck, the severity of this finding is considered medium.\n\n### Patches\nFor users who're using version < 0.8.6, >= 0.7.0, upgrade to v0.8.6.\n\n### Workarounds\nDelete the `csi-nodeplugin-fluid` daemonset in `fluid-system` namespace and avoid using CSI mode to mount FUSE file systems. Alternatively using sidecar mode to mount FUSE file systems is recommended. Refer to [the doc](https://github.com/fluid-cloudnative/fluid/blob/master/docs/en/samples/knative.md) to get a full example of how to use sidecar mode.\n\n### References\n\n\nFixed by [Fix rbacs and limit CSI Plugin's node related access](https://github.com/fluid-cloudnative/fluid/commit/77c8110a3d1ec077ae2bce6bd88d296505db1550)\n\n### Credits\nSpecial thanks to the discoverers of this issue:\n\nNanzi Yang ([nzyang@stu.xidian.edu.cn](mailto:nzyang@stu.xidian.edu.cn))\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/fluid-cloudnative/fluid"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.7.0"
}, {
"fixed" : "0.8.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fluid-cloudnative/fluid/security/advisories/GHSA-93xx-cvmc-9w3v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30840"
}, {
"type" : "WEB",
"url" : "https://github.com/fluid-cloudnative/fluid/commit/77c8110a3d1ec077ae2bce6bd88d296505db1550"
}, {
"type" : "WEB",
"url" : "https://github.com/fluid-cloudnative/fluid/commit/91c05c32db131997b5ca065e869c9918a125c149"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fluid-cloudnative/fluid"
}, {
"type" : "WEB",
"url" : "https://github.com/fluid-cloudnative/fluid/releases/tag/v0.8.6"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-09T19:58:47Z",
"nvd_published_at" : "2023-05-08T18:15:14Z"
}
}