# GHSA-CFX6-94GC-H774: SQL Injection via a specially crafted request in the legacy SQL planner

- Database: GitHub
- Severity: CVSS 8.1 (High)
- Published: 2026-09-21
- Modified: 2026-09-21

## Affected versions

- @cubejs-backend/api-gateway (npm): fixed in 1.4.5
- @cubejs-backend/api-gateway (npm): from 1.5.0, fixed in 1.6.73
- @cubejs-backend/api-gateway (npm): from 1.7.0, fixed in 1.7.24
- @cubejs-backend/schema-compiler (npm): fixed in 1.4.5
- @cubejs-backend/schema-compiler (npm): from 1.5.0, fixed in 1.6.73
- @cubejs-backend/schema-compiler (npm): from 1.7.0, fixed in 1.7.24
- @cubejs-backend/server-core (npm): fixed in 1.4.5
- @cubejs-backend/server-core (npm): from 1.5.0, fixed in 1.6.73
- @cubejs-backend/server-core (npm): from 1.7.0, fixed in 1.7.24
- @cubejs-backend/shared (npm): fixed in 1.4.5
- @cubejs-backend/shared (npm): from 1.5.0, fixed in 1.6.73
- @cubejs-backend/shared (npm): from 1.7.0, fixed in 1.7.24

## Description

### Impact

A specially crafted request may allow an authenticated user to perform SQL injection in Cube deployments using the legacy SQL planner. The issue affects time zone handling and may result in unauthorized data access or service disruption, depending on the data source's permissions and configuration. Data modification has not been established for this assessment.

### Affected Versions

- `< 1.4.5`
- `>= 1.5.0, < 1.6.73`
- `>= 1.7.0, < 1.7.24`

These ranges include early Cube releases and exclude patched maintenance releases. The issue affects deployments using the legacy planner. Starting with Cube 1.7.0, Tesseract is the default; affected 1.7.x deployments have the legacy planner selected with `CUBEJS_TESSERACT_SQL_PLANNER=false`.

Affected components: `@cubejs-backend/api-gateway`, `@cubejs-backend/schema-compiler`, `@cubejs-backend/server-core`, `@cubejs-backend/shared`.

### Patches

Upgrade to a patched version:

- [1.7.24](https://github.com/cube-js/cube/blob/v1.7.24/CHANGELOG.md) or later in the 1.7.x release line
- [1.6.73](https://github.com/cube-js/cube/blob/v1.6.73/CHANGELOG.md) in the 1.6.x release line
- [1.4.5](https://github.com/cube-js/cube/blob/v1.4.5/CHANGELOG.md) in the 1.4.x release line

Update the Cube server and the affected backend packages together.

### Workarounds

Where supported, selecting Tesseract provides a temporary mitigation.

### References

Reported and fixed by Dmitrii Patsura ([@ovr](https://github.com/ovr)).

## References

- https://github.com/cube-js/cube/security/advisories/GHSA-cfx6-94gc-h774

Page: https://cve.now/GHSA-CFX6-94GC-H774

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
