CVE-2023-22478: Github.com/KubeOperator/kubepi KubePi May Allow Unauthorized Access Vulnerability

HIGH
Advisory Identifier: GHSA-gqx8-hxmv-c4v4
CVSS 7.5
CWE-862
Published
Advisory Summary

CVE-2023-22478 is a HIGH (CVSS 7.5) kubepi may allow unauthorized access vulnerability (CWE-862: Missing Authorization) affecting Github.com/KubeOperator/kubepi libraries in the Go ecosystem. The issue involves kubepi may allow unauthorized access to system api. Remediation is available by upgrading affected packages to version 1.6.4.

CVE-2023-22478 at a Glance

CVE Identifier CVE-2023-22478
GHSA Identifier GHSA-gqx8-hxmv-c4v4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-862: Missing Authorization
Affected Product Github.com/KubeOperator/kubepi
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2023-22478

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.4
Upgrade github.com/KubeOperator/kubepi to 1.6.4
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-22478, 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.4), 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. 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 Unauthorized access refers to the ability to bypass the system's preset permission settings to access some API interfaces. The attack exploits a flaw in how online applications handle routing permissions. ### Affected Version <= v1.6.3 ### Patches The vulnerability has been fixed in v1.6.4. https://github.com/KubeOperator/KubePi/commit/0c6774bf5d9003ae4d60257a3f207c131ff4a6d6 ### Workarounds It is recommended to upgrade the version to v1.6.4. ### For more information If you have any questions or comments about this advisory, please open an issue. ### References https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4

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

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

References

Frequently Asked Questions

What is CVE-2023-22478?
CVE-2023-22478 is a security vulnerability in Github.com/KubeOperator/kubepi involving KubePi may allow unauthorized access to system API under CWE-862: Missing Authorization.
Which Github.com/KubeOperator/kubepi versions are affected?
Affected versions include releases prior to 1.6.4 across affected packages: github.com/KubeOperator/kubepi.
What version fixes CVE-2023-22478?
Upgrading to 1.6.4 (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.4. Upgrade your dependency to 1.6.4 or later.
What is the CVSS score of CVE-2023-22478?
CVE-2023-22478 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-22478?
CVE-2023-22478 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2023-22478?
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-gqx8-hxmv-c4v4",
  "modified" : "2023-01-24T23:29:03Z",
  "published" : "2023-01-09T21:56:09Z",
  "aliases" : [ "CVE-2023-22478" ],
  "summary" : "KubePi may allow unauthorized access to system API",
  "details" : "### Summary\nUnauthorized access refers to the ability to bypass the system's preset permission settings to access some API interfaces. The attack exploits a flaw in how online applications handle routing permissions.\n\n### Affected Version\n<= v1.6.3\n\n### Patches\nThe vulnerability has been fixed in v1.6.4.\n\nhttps://github.com/KubeOperator/KubePi/commit/0c6774bf5d9003ae4d60257a3f207c131ff4a6d6\n\n### Workarounds\nIt is recommended to upgrade the version to v1.6.4.\n\n### For more information\nIf you have any questions or comments about this advisory, please open an issue.\n\n### References\nhttps://github.com/KubeOperator/KubePi/releases/tag/v1.6.4",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/KubeOperator/kubepi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/KubePi/security/advisories/GHSA-gqx8-hxmv-c4v4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KubeOperator/KubePi/security/advisories/GHSA-gqx8-hxmv-c4v4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-22478"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KubeOperator/KubePi/commit/0c6774bf5d9003ae4d60257a3f207c131ff4a6d6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/KubeOperator/KubePi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T21:56:09Z",
    "nvd_published_at" : "2023-01-14T01:15:00Z"
  }
}