Skip to main content
Vulnerability Database/CVE-2026-115322

CVE-2026-115322: Bytebase Authorization Bypass Vulnerability

CVE-2026-115322 is an authorization bypass flaw in Bytebase that allows authenticated users to access task runs from other projects without proper authorization. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-115322 Overview

CVE-2026-115322 is an authorization bypass vulnerability in Bytebase versions prior to 3.16.0. The flaw resides in the rollout service handlers GetTaskRunLog, GetTaskRunSession, and PreviewTaskRunRollback. These handlers accept task or task run unique identifiers (UIDs) without validating that the requesting user has permission on the owning project. Authenticated users with access to any single project can supply foreign UIDs to retrieve execution logs, database session details, and rollback SQL belonging to other projects. The vulnerability is categorized as [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

Any authenticated Bytebase user with project access can read task execution logs, database session metadata, and rollback SQL from arbitrary projects, exposing sensitive schema and query data across tenant boundaries.

Affected Products

  • Bytebase versions prior to 3.16.0
  • Bytebase rollout service (backend/api/v1/rollout_service.go)
  • Multi-project Bytebase deployments with shared authenticated users

Discovery Timeline

  • 2026-10-22 - CVE-2026-115322 published to the National Vulnerability Database
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-115322

Vulnerability Analysis

Bytebase is a database schema change and version control platform. Its rollout service exposes task-oriented gRPC handlers that identify task runs by numeric UID. The handlers GetTaskRunLog, GetTaskRunSession, and PreviewTaskRunRollback resolve the supplied UID directly against the database layer. They do not re-check whether the caller holds project-level permission on the project that owns the referenced task.

An attacker who holds any valid project membership can enumerate or guess integer task UIDs and submit them to these endpoints. The server returns execution logs, session data, and rollback statements regardless of project ownership. Exposed data can include SQL statements, affected tables, timing information, and database connection context useful for lateral reconnaissance against production databases.

Root Cause

The root cause is missing object-level authorization on user-controlled identifiers. The handlers trust the UID parameter and fetch the associated record without verifying that the caller is a member of the owning project. This pattern maps to CWE-639, Authorization Bypass Through User-Controlled Key. The fix landed in commit bb553e8423 via Pull Request #19554 and shipped in Bytebase 3.16.0.

Attack Vector

Exploitation requires network access to the Bytebase API and a valid authenticated session with permission on at least one project. The attacker calls GetTaskRunLog, GetTaskRunSession, or PreviewTaskRunRollback with task or task run UIDs owned by other projects. No user interaction is required. See the VulnCheck Advisory for Bytebase and the vulnerable handler source for technical details. No verified public exploit code is available at the time of publication.

// No verified exploitation code available. Refer to the
// VulnCheck advisory and upstream patch for technical details.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-115322

Indicators of Compromise

  • Access log entries showing a single authenticated principal invoking GetTaskRunLog, GetTaskRunSession, or PreviewTaskRunRollback with task UIDs spanning multiple projects.
  • Sequential or enumerated numeric task UID values in gRPC or HTTP request parameters within short time windows.
  • Responses returning rollback SQL or session data for projects where the caller has no documented role assignment.

Detection Strategies

  • Correlate Bytebase audit logs against project membership data to flag any task run access where the caller is not a member of the owning project.
  • Baseline normal per-user access patterns to the three affected handlers and alert on volume anomalies or cross-project access.
  • Monitor reverse proxy or ingress logs for high-frequency requests to rollout service endpoints originating from a single session.

Monitoring Recommendations

  • Enable verbose Bytebase audit logging for the rollout service and forward it to a centralized SIEM for retention and analysis.
  • Track outbound responses from Bytebase for unexpected volumes of SQL statements or session metadata that could indicate scraping.
  • Review authentication logs for low-privilege accounts suddenly interacting with task run APIs.

How to Mitigate CVE-2026-115322

Immediate Actions Required

  • Upgrade Bytebase to version 3.16.0 or later, which includes the authorization check added in commit bb553e8423.
  • Audit historical access logs for cross-project calls to GetTaskRunLog, GetTaskRunSession, and PreviewTaskRunRollback since deployment.
  • Rotate any database credentials or secrets that may have been exposed in task run logs or rollback SQL.

Patch Information

The vendor fix is published in Bytebase Release 3.16.0. The patch adds project-level permission checks to the affected rollout service handlers so that task and task run UIDs are only resolvable by callers with access to the owning project. Reference the tracking issue #19369 and pull request #19554 for implementation details.

Workarounds

  • Restrict Bytebase API network exposure to trusted administrators until the upgrade is applied.
  • Reduce the number of accounts with any project membership to limit the pool of users who can invoke the affected endpoints.
  • Place a reverse proxy policy in front of Bytebase to rate-limit and alert on access to the three affected handlers.
bash
# Upgrade Bytebase to the patched release
docker pull bytebase/bytebase:3.16.0
docker stop bytebase && docker rm bytebase
docker run --init --name bytebase \
  --restart always \
  --publish 8080:8080 \
  --volume ~/.bytebase/data:/var/opt/bytebase \
  bytebase/bytebase:3.16.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.