CVE-2022-32170: Github.com/bytebase/bytebase Bytebase Allows Low-privilege Users To Vulnerability

MODERATE
Advisory Identifier: GHSA-9mmc-27gw-w6mq
CVSS 4.3
CWE-285
Published
Advisory Summary

CVE-2022-32170 is a MODERATE (CVSS 4.3) bytebase allows low-privilege users to vulnerability (CWE-285: Improper Authorization) affecting Github.com/bytebase/bytebase libraries in the Go ecosystem. The issue involves bytebase allows low-privilege users to view admin projects. Remediation is available in the latest vendor maintenance releases.

CVE-2022-32170 at a Glance

CVE Identifier CVE-2022-32170
GHSA Identifier GHSA-9mmc-27gw-w6mq
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-285: Improper Authorization
Affected Product Github.com/bytebase/bytebase
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2022-32170

To remediate this vulnerability, upgrade all affected Github.com/bytebase/bytebase 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/bytebase/bytebase fixed: Latest secure release
Upgrade github.com/bytebase/bytebase to Latest secure release
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/bytebase/bytebase

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-32170, inspect your project dependencies for Github.com/bytebase/bytebase:

inspect dependencies for github.com/bytebase/bytebase

Analyze the terminal output to locate any version of Github.com/bytebase/bytebase in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Github.com/bytebase/bytebase, 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

### Overview The "Bytebase" application does not restrict low privilege user from accessing admin projects ### Details The "Bytebase" application does not restrict low privilege user from accessing admin projects for which an unauthorized user can view the "projects" created by "Admin". The affected endpoint is `/api/project?user=${userId}`. ### PoC 1. Log in to the application as both "Admin" (`admin@example.com:admin`) and Developer "User" (`user@admin.com:user`) and then click on "Projects". 2. Now open "Burp suite" and turn "Intercept on" and from "admin" dashboard click on "projects" and see the "user id" of "admin" in the capture request. 3. Note the "user id" and "Forward" the request and again capture the request of "projects" from the "user" dashboard and change "user id" to "admin user id" and "Forward" the request. 4. Now "user" can see the "projects" created by "admin".

CVE-2022-32170 Affected Github.com/bytebase/bytebase Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/bytebase/bytebase
Go
≥ 0.1.0
≤ 1.0.4

References

Frequently Asked Questions

What is CVE-2022-32170?
CVE-2022-32170 is a security vulnerability in Github.com/bytebase/bytebase involving Bytebase allows low-privilege users to view admin projects under CWE-285: Improper Authorization.
Which Github.com/bytebase/bytebase versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/bytebase/bytebase.
What version fixes CVE-2022-32170?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/bytebase/bytebase affected?
Yes, github.com/bytebase/bytebase is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-32170?
CVE-2022-32170 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2022-32170?
CVE-2022-32170 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2022-32170?
Run the dependency tree command: 'inspect dependencies for github.com/bytebase/bytebase'. 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-9mmc-27gw-w6mq",
  "modified" : "2025-05-21T16:43:52Z",
  "published" : "2022-09-29T00:00:27Z",
  "aliases" : [ "CVE-2022-32170" ],
  "summary" : "Bytebase allows low-privilege users to view admin projects",
  "details" : "### Overview\nThe \"Bytebase\" application does not restrict low privilege user from accessing admin projects\n\n### Details\nThe \"Bytebase\" application does not restrict low privilege user from accessing admin projects for which an unauthorized user can view the \"projects\" created by \"Admin\". The affected endpoint is `/api/project?user=${userId}`.\n\n### PoC\n1. Log in to the application as both \"Admin\" (`admin@example.com:admin`) and Developer \"User\" (`user@admin.com:user`) and then click on \"Projects\".\n2. Now open \"Burp suite\" and turn \"Intercept on\" and from \"admin\" dashboard click on \"projects\" and see the \"user id\" of \"admin\" in the capture request.\n3. Note the \"user id\" and \"Forward\" the request and again capture the request of \"projects\" from the \"user\" dashboard and change \"user id\" to \"admin user id\" and \"Forward\" the request.\n4. Now \"user\" can see the \"projects\" created by \"admin\".",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/bytebase/bytebase"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.0"
      }, {
        "last_affected" : "1.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-32170"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bytebase/bytebase"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytebase/bytebase/blob/1.0.4/frontend/src/store/modules/project.ts#L166-L197"
  }, {
    "type" : "WEB",
    "url" : "https://www.mend.io/vulnerability-database/CVE-2022-32170"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-24T20:10:21Z",
    "nvd_published_at" : "2022-09-28T10:15:00Z"
  }
}