CVE-2022-51026
JSON

9.3critical

Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login

Severity
9.3critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.72% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-5r3p-6rj5-7937

Description

Bytebase 0.12.0 before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to log in as any user. The flaw stems from trusting client-supplied GitLab provider configuration in the POST /api/auth/login/GITLAB_SELF_HOST endpoint. Attackers can set instanceUrl to a server they control that returns an active user with a chosen email. Bytebase then issues session tokens for that principal, letting attackers impersonate existing users including the Owner or create new members.

Affected

Product or packageVersionsReported by
bytebase bytebasefrom 0.12.0 before 1.0.1
Not affected: 1.0.1
CVE List
github.com/bytebase/bytebase (Go)before 1.0.1GitHub Advisory Database

All scores

VulnCheck9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

Classification

CWE-287CWE-290

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Bytebase 0.12.0 before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to log in as any user. The flaw stems from trusting client-supplied GitLab provider configuration in the POST /api/auth/login/GITLAB_SELF_HOST endpoint. Attackers can set instanceUrl to a server they control that returns an active user with a chosen email. Bytebase then issues session tokens for that principal, letting attackers impersonate existing users including the Owner or create new members.

GitHub Advisory Database
Impact
  • GitLab login allows login by any user.
  • JWT auth token can be derived as long as the server isn't rebooted.
  • Developers can assign issues to non-admin/DBA users.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-51026 changed 2026-10-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-5r3p-6rj5-7937 changed 2026-10-23CC-BY-4.0
NVDCVE-2022-51026 changed 2026-10-29Public domain