CVE-2023-30617: Github.com/openkruise/kruise Kruise Allows Leveraging The Kruise-daemon Vulnerability

MODERATE
Advisory Identifier: GHSA-437m-7hj5-9mpw
CVSS 6.5
CWE-269 CWE-250
Published
Advisory Summary

CVE-2023-30617 is a MODERATE (CVSS 6.5) kruise allows leveraging the kruise-daemon vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/openkruise/kruise libraries in the Go ecosystem. The issue involves kruise allows leveraging the kruise-daemon pod to list all secrets in the entire cluster. Remediation is available by upgrading affected packages to version 1.3.1, 1.4.1, 1.5.2.

CVE-2023-30617 at a Glance

CVE Identifier CVE-2023-30617
GHSA Identifier GHSA-437m-7hj5-9mpw
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-269: Improper Privilege Management
Affected Product Github.com/openkruise/kruise
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:H/UI:N/S:U/C:H/I:H/A:N).

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

How to Fix CVE-2023-30617

To remediate this vulnerability, upgrade all affected Github.com/openkruise/kruise 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/openkruise/kruise fixed: 1.3.1
Upgrade github.com/openkruise/kruise to 1.3.1
github.com/openkruise/kruise fixed: 1.4.1
Upgrade github.com/openkruise/kruise to 1.4.1
github.com/openkruise/kruise fixed: 1.5.2
Upgrade github.com/openkruise/kruise to 1.5.2
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/openkruise/kruise

How to Check if You Are Affected

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

inspect dependencies for github.com/openkruise/kruise

Analyze the terminal output to locate any version of Github.com/openkruise/kruise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/openkruise/kruise, 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

### Impact Attacker that has gain root privilege of the node that kruise-daemon run , can leverage the kruise-daemon pod to list all secrets in the entire cluster. After that, attackers can leverage the "captured" secrets (e.g. the kruise-manager service account token) to gain extra privilege such as pod modification. ### Workarounds For users that do not require imagepulljob functions, they can modify kruise-daemon-role to drop the cluster level secret get/list privilege ### Patches For users who're using v0.8.x ~ v1.2.x, please update the v1.3.1 For users who're using v1.3, please update the v1.3.1 For users who're using v1.4, please update the v1.4.1 For users who're using v1.5, please update the v1.5.2 ### References None

CVE-2023-30617 Affected Github.com/openkruise/kruise Versions

3 component(s)
Fixed Versions:
1.3.11.4.11.5.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openkruise/kruise
Go
≥ 0.8.0
< 1.3.1
1.3.1
github.com/openkruise/kruise
Go
≥ 1.4.0
< 1.4.1
1.4.1
github.com/openkruise/kruise
Go
≥ 1.5.0
< 1.5.2
1.5.2

References

Frequently Asked Questions

What is CVE-2023-30617?
CVE-2023-30617 is a security vulnerability in Github.com/openkruise/kruise involving Kruise allows leveraging the kruise-daemon pod to list all secrets in the entire cluster under CWE-269: Improper Privilege Management.
Which Github.com/openkruise/kruise versions are affected?
Affected versions include releases prior to 1.3.1, 1.4.1, 1.5.2 across affected packages: github.com/openkruise/kruise.
What version fixes CVE-2023-30617?
Upgrading to 1.3.1, 1.4.1, 1.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openkruise/kruise affected?
Yes, github.com/openkruise/kruise is affected in releases prior to 1.3.1, 1.4.1, 1.5.2. Upgrade your dependency to 1.3.1, 1.4.1, 1.5.2 or later.
What is the CVSS score of CVE-2023-30617?
CVE-2023-30617 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-30617?
CVE-2023-30617 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2023-30617?
Run the dependency tree command: 'inspect dependencies for github.com/openkruise/kruise'. 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-437m-7hj5-9mpw",
  "modified" : "2024-01-05T16:01:24Z",
  "published" : "2024-01-05T16:01:24Z",
  "aliases" : [ "CVE-2023-30617" ],
  "summary" : "Kruise allows leveraging the kruise-daemon pod to list all secrets in the entire cluster",
  "details" : "### Impact\nAttacker that has gain root privilege of the node that kruise-daemon run , can leverage the kruise-daemon pod to list all secrets in the entire cluster. After that, attackers can leverage the \"captured\" secrets (e.g. the kruise-manager service account token) to gain extra privilege such as pod modification. \n\n### Workarounds\nFor users that do not require imagepulljob functions, they can modify kruise-daemon-role to drop the cluster level secret get/list privilege \n\n### Patches\n\nFor users who're using v0.8.x ~ v1.2.x, please update the v1.3.1\nFor users who're using v1.3, please update the v1.3.1\nFor users who're using v1.4, please update the v1.4.1\nFor users who're using v1.5, please update the v1.5.2\n### References\nNone",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openkruise/kruise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.0"
      }, {
        "fixed" : "1.3.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openkruise/kruise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openkruise/kruise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.5.0"
      }, {
        "fixed" : "1.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openkruise/kruise/security/advisories/GHSA-437m-7hj5-9mpw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30617"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openkruise/kruise"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-250", "CWE-269" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-05T16:01:24Z",
    "nvd_published_at" : "2024-01-03T16:15:08Z"
  }
}