CVE-2022-32170: Github.com/bytebase/bytebase Bytebase Allows Low-privilege Users To Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/bytebase/bytebase to Latest secure release
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
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?
Which Github.com/bytebase/bytebase versions are affected?
What version fixes CVE-2022-32170?
Is github.com/bytebase/bytebase affected?
What is the CVSS score of CVE-2022-32170?
What CWE is associated with CVE-2022-32170?
How can I check Go dependencies for CVE-2022-32170?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}