CVE-2023-37917: Github.com/KubeOperator/kubepi KubePi Privilege Escalation Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-757p-vx43-fp9r
CVSS 9.1
CWE-269
Published
Advisory Summary

CVE-2023-37917 is a CRITICAL (CVSS 9.1) kubepi privilege escalation vulnerability vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/KubeOperator/kubepi libraries in the Go ecosystem. The issue involves kubepi privilege escalation vulnerability. Remediation is available by upgrading affected packages to version 1.6.5.

CVE-2023-37917 at a Glance

CVE Identifier CVE-2023-37917
GHSA Identifier GHSA-757p-vx43-fp9r
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-269: Improper Privilege Management
Affected Product Github.com/KubeOperator/kubepi
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:C/C:L/I:H/A:L).

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

How to Fix CVE-2023-37917

To remediate this vulnerability, upgrade all affected Github.com/KubeOperator/kubepi 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/KubeOperator/kubepi fixed: 1.6.5
Upgrade github.com/KubeOperator/kubepi to 1.6.5
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/KubeOperator/kubepi

How to Check if You Are Affected

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

inspect dependencies for github.com/KubeOperator/kubepi

Analyze the terminal output to locate any version of Github.com/KubeOperator/kubepi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.5), 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/KubeOperator/kubepi, 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

### Summary A normal user has permission to create/update users, they can become admin by editing the `isadmin` value in the request ### PoC Change the value of the `isadmin` field in the request to true: https://drive.google.com/file/d/1e8XJbIFIDXaFiL-dqn0a0b6u7o3CwqSG/preview ### Impact Elevate user privileges

CVE-2023-37917 Affected Github.com/KubeOperator/kubepi Versions

1 component(s)
Fixed Versions:
1.6.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/KubeOperator/kubepi
Go
< 1.6.5
1.6.5

References

Frequently Asked Questions

What is CVE-2023-37917?
CVE-2023-37917 is a security vulnerability in Github.com/KubeOperator/kubepi involving KubePi Privilege Escalation vulnerability under CWE-269: Improper Privilege Management.
Which Github.com/KubeOperator/kubepi versions are affected?
Affected versions include releases prior to 1.6.5 across affected packages: github.com/KubeOperator/kubepi.
What version fixes CVE-2023-37917?
Upgrading to 1.6.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/KubeOperator/kubepi affected?
Yes, github.com/KubeOperator/kubepi is affected in releases prior to 1.6.5. Upgrade your dependency to 1.6.5 or later.
What is the CVSS score of CVE-2023-37917?
CVE-2023-37917 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L.
What CWE is associated with CVE-2023-37917?
CVE-2023-37917 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-37917?
Run the dependency tree command: 'inspect dependencies for github.com/KubeOperator/kubepi'. 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-757p-vx43-fp9r",
  "modified" : "2023-07-21T20:18:00Z",
  "published" : "2023-07-21T20:18:00Z",
  "aliases" : [ "CVE-2023-37917" ],
  "summary" : "KubePi Privilege Escalation vulnerability",
  "details" : "### Summary\nA normal user has permission to create/update users, they can become admin by editing the `isadmin` value in the request\n\n\n### PoC\nChange the value of the `isadmin` field in the request to true:\nhttps://drive.google.com/file/d/1e8XJbIFIDXaFiL-dqn0a0b6u7o3CwqSG/preview\n\n### Impact\nElevate user privileges\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/KubeOperator/kubepi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/KubePi/security/advisories/GHSA-757p-vx43-fp9r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-37917"
  }, {
    "type" : "WEB",
    "url" : "https://drive.google.com/file/d/1e8XJbIFIDXaFiL-dqn0a0b6u7o3CwqSG/preview"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/1Panel-dev/KubePi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/KubePi/releases/tag/v1.6.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-21T20:18:00Z",
    "nvd_published_at" : "2023-07-21T21:15:11Z"
  }
}