Access Restriction Bypass Affecting @cubejs-backend/api-gateway package, versions >=0.31.23 <0.31.24


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-CUBEJSBACKENDAPIGATEWAY-3167257
  • published 11 Dec 2022
  • disclosed 11 Dec 2022
  • credit Unknown

How to fix?

Upgrade @cubejs-backend/api-gateway to version 0.31.24 or higher.

Overview

@cubejs-backend/api-gateway is a package that provides idempotent long polling API.

Affected versions of this package are vulnerable to Access Restriction Bypass when all authenticated Cube clients could bypass SQL row-level security and run arbitrary SQL commands via the newly introduced /v1/sql-runner endpoint.

CVSS Scores

version 3.1
Expand this section

Snyk

7.7 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

8.8 high