Skip to main content
Menu
Advisories

SQL Injection in database drivers via a specially crafted request

GHSA-HFJJ-RFM5-6X53Published Updated GitHub

Description

Impact

A specially crafted request may allow an authenticated user to perform SQL injection in Cube deployments using an affected database driver. Depending on the data source and configuration, this may bypass row-level security and disclose data the user is not authorized to access, including data belonging to other tenants. The reported impact is unauthorized data disclosure; data modification and availability impact have not been established for this finding.

Affected packages:

  • @cubejs-backend/prestodb-driver
  • @cubejs-backend/trino-driver
  • @cubejs-backend/athena-driver
  • @cubejs-backend/pinot-driver
  • @cubejs-backend/dremio-driver
  • @cubejs-backend/jdbc-driver (affected data source configurations)

Shared fix component: @cubejs-backend/shared.

Affected Versions

  • < 1.4.4
  • >= 1.5.0, < 1.6.70
  • >= 1.7.0, < 1.7.12

These ranges apply to published versions of the affected driver packages, including releases predating Cube 1.x, and exclude patched maintenance releases. The issue applies to both the legacy planner and Tesseract.

Patches

Upgrade to a patched version:

  • 1.7.12 or later in the 1.7.x release line
  • 1.6.70 or later in the 1.6.x release line
  • 1.4.4 or later in the 1.4.x release line

Update the affected drivers and their Cube backend dependencies together. These releases also include related updates for Hive and Spark SQL integrations through JDBC, and the QuestDB driver.

Workarounds

Until an upgrade is possible, restrict access to affected data sources to trusted users. Selecting Tesseract does not mitigate this issue.

References

The original Presto/Trino finding was reported by Winfunc Security Team (Winfunc) on July 17, 2026. The broader driver audit and fixes were developed by Dmitrii Patsura (@ovr).

Affected versions

References

GitHub · cube-js/cube