Skip to content
Heist/ feed
Back to feed
Critical

SQl injection in cube-js

Type: advisorySources: OSV

cube-js is a headless business intelligence platform. In version 0.31.23 all authenticated Cube clients could bypass SQL row-level security and run arbitrary SQL via the newly introduced /v1/sql-runner endpoint. This issue has been resolved in version 0.31.24. Users are advised to either upgrade to 0.31.24 or to downgrade to 0.31.22. There are no known workarounds for this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-23510
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:06 UTC · Revision 1

Source evidence

SQl injection in cube-js

core-osv · Original source

Published 9 Dec 2022, 22:12 UTC

cube-js is a headless business intelligence platform. In version 0.31.23 all authenticated Cube clients could bypass SQL row-level security and run arbitrary SQL via the newly introduced /v1/sql-runner endpoint. This issue has been resolved in version 0.31.24. Users are advised to either upgrade to 0.31.24 or to downgrade to 0.31.22. There are no known workarounds for this vulnerability.

osv:CVE-2022-23510
Complete source record
{
  "id": "df3300f6e16cb20c9f8f0f56e0da3bf84b36b1bf1177e2783ea3c34606fe748d",
  "url": "https://osv.dev/vulnerability/CVE-2022-23510",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "SQl injection in cube-js",
    "summary": "cube-js is a headless business intelligence platform. In version 0.31.23 all authenticated Cube clients could bypass SQL row-level security and run arbitrary SQL via the newly introduced /v1/sql-runner endpoint. This issue has been resolved in version 0.31.24. Users are advised to either upgrade to 0.31.24 or to downgrade to 0.31.22. There are no known workarounds for this vulnerability.",
    "evidence": "osv:CVE-2022-23510",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-23510",
      "aliases": [
        "CVE-2022-23510",
        "GHSA-6jqm-3c9g-pch7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cube-js/cube",
              "type": "GIT",
              "events": [
                {
                  "introduced": "03f0cb1daf3ee9b39f9fe34c05d7eeb80bde0963"
                },
                {
                  "fixed": "3c614674fed6ca17df08bbba8c835ef110167570"
                },
                {
                  "fixed": "f1140de508e359970ac82b50bae1c4bf152f6041"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "= 0.31.23"
                      },
                      {
                        "last_affected": "= 0.31.23"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "3c614674fed6ca17df08bbba8c835ef110167570"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f1140de508e359970ac82b50bae1c4bf152f6041"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.31.23",
            "= 0.31.23",
            "v0.31.23"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23510.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.865259163Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23510.json",
        "https://github.com/cube-js/cube.js/security/advisories/GHSA-6jqm-3c9g-pch7",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-23510",
        "https://github.com/cube-js/cube.js/commit/3c614674fed6ca17df08bbba8c835ef110167570",
        "https://github.com/cube-js/cube.js/commit/f1140de508e359970ac82b50bae1c4bf152f6041"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23510.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-23510",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505140,
  "published_at": "2022-12-09T22:12:10.191+00:00"
}