Summary
CVE-2022-51026 is a critical authentication bypass vulnerability in Bytebase 0.12.0 before 1.0.1. It allows unauthenticated remote attackers to log in as any user. The CVE record carries a CVSS v4.0 score of 9.3 (Critical) and a CVSS v3.1 score of 9.8 (Critical).
Technical details
- Root cause: the GitLab Self-Hosted login endpoint (
POST /api/auth/login/GITLAB_SELF_HOST) accepts client-supplied provider configuration instead of relying on trusted, server-side configuration (CWE-290, Authentication Bypass by Spoofing). - Trigger conditions: the attacker sends a login request to the endpoint with an
instanceUrlthat points to a server they control. That server returns an active user with an email address the attacker chooses. - Attack vector: network. No authentication, privileges or user interaction are required.
- Impact: Bytebase issues session tokens for the attacker-chosen identity. The attacker can impersonate existing users, including the Owner, or create new accounts. This gives access to the managed database workflows.
Affected software
- Bytebase 0.12.0 up to, but not including, 1.0.1
Severity
- CVSS v4.0: 9.3 (Critical),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 9.8 (Critical),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade Bytebase to version 1.0.1 or later. Test the upgrade in a non-production environment first.
- If you cannot patch immediately: I did not find a vendor-documented workaround. As a general precaution, restrict network access to the Bytebase instance to trusted networks, and review accounts and sessions for unexpected members or logins.

