CVE-2023-33190: Github.com/labring/sealos Improper Configuration Of RBAC Permissions Vulnerability

CRITICAL
Advisory Identifier: GHSA-74j8-w7f9-pp62
CVSS 9.9
CWE-287 CWE-863
Published
Advisory Summary

CVE-2023-33190 is a CRITICAL (CVSS 9.9) improper configuration of rbac permissions vulnerability (CWE-287: Improper Authentication) affecting Github.com/labring/sealos libraries in the Go ecosystem. The issue involves improper configuration of rbac permissions obtaining cluster control permissions. Remediation is available by upgrading affected packages to version 4.2.1-rc4.

CVE-2023-33190 at a Glance

CVE Identifier CVE-2023-33190
GHSA Identifier GHSA-74j8-w7f9-pp62
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/labring/sealos
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.9

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

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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-33190

To remediate this vulnerability, upgrade all affected Github.com/labring/sealos 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/labring/sealos fixed: 4.2.1-rc4
Upgrade github.com/labring/sealos to 4.2.1-rc4
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/labring/sealos

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-33190, inspect your project dependencies for Github.com/labring/sealos:

inspect dependencies for github.com/labring/sealos

Analyze the terminal output to locate any version of Github.com/labring/sealos in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.1-rc4), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/labring/sealos, 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 Improper configuration of RBAC permissions resulted in obtaining cluster control permissions, which could control the entire cluster deployed with Sealos, as well as hundreds of pods and other resources within the cluster. ### Details detail's is disable by publish. ### PoC detail's is disable by publish. ### Impact + sealos public cloud user + CWE-287 Improper Authentication

CVE-2023-33190 Affected Github.com/labring/sealos Versions

1 component(s)
Fixed Versions:
4.2.1-rc4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/labring/sealos
Go
< 4.2.1-rc4
4.2.1-rc4

References

Frequently Asked Questions

What is CVE-2023-33190?
CVE-2023-33190 is a security vulnerability in Github.com/labring/sealos involving Improper configuration of RBAC permissions obtaining cluster control permissions under CWE-287: Improper Authentication.
Which Github.com/labring/sealos versions are affected?
Affected versions include releases prior to 4.2.1-rc4 across affected packages: github.com/labring/sealos.
What version fixes CVE-2023-33190?
Upgrading to 4.2.1-rc4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/labring/sealos affected?
Yes, github.com/labring/sealos is affected in releases prior to 4.2.1-rc4. Upgrade your dependency to 4.2.1-rc4 or later.
What is the CVSS score of CVE-2023-33190?
CVE-2023-33190 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-33190?
CVE-2023-33190 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2023-33190?
Run the dependency tree command: 'inspect dependencies for github.com/labring/sealos'. 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-74j8-w7f9-pp62",
  "modified" : "2023-06-30T20:25:52Z",
  "published" : "2023-06-30T20:25:52Z",
  "aliases" : [ "CVE-2023-33190" ],
  "summary" : "Improper configuration of RBAC permissions obtaining cluster control permissions",
  "details" : "### Summary\nImproper configuration of RBAC permissions resulted in obtaining cluster control permissions, which could control the entire cluster deployed with Sealos, as well as hundreds of pods and other resources within the cluster.\n\n### Details\ndetail's is disable by publish.\n\n### PoC\ndetail's is disable by publish.\n\n### Impact\n+ sealos public cloud user\n+ CWE-287 Improper Authentication\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/labring/sealos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.1-rc4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/labring/sealos/security/advisories/GHSA-74j8-w7f9-pp62"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-33190"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/labring/sealos/commit/4cdf52e55666864e5f90ed502e9fc13e18985b7b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/labring/sealos"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-863" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-30T20:25:52Z",
    "nvd_published_at" : "2023-06-29T19:15:08Z"
  }
}