# CVE-2022-23510: SQl injection in cube-js

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.99%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-12-09T22:12:10.191Z
- Modified: 2026-06-17T04:30:16.137Z
- Also known as: GHSA-6jqm-3c9g-pch7
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- cube-js cube.js: = 0.31.23
- @cubejs-backend/api-gateway (npm): from 0.31.23 before 0.31.24
- cube cube.js: 0.31.23

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cube-js/cube.js/security/advisories/GHSA-6jqm-3c9g-pch7> (third-party-advisory, web)
- <https://github.com/cube-js/cube.js/commit/3c614674fed6ca17df08bbba8c835ef110167570> (patch, third-party-advisory, web)
- <https://github.com/cube-js/cube.js/commit/f1140de508e359970ac82b50bae1c4bf152f6041> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23510> (advisory)
- <https://github.com/cube-js/cube.js> (package)

## Sources

- CVE List: [CVE-2022-23510](https://www.cve.org/CVERecord?id=CVE-2022-23510), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-6jqm-3c9g-pch7](https://github.com/advisories/GHSA-6jqm-3c9g-pch7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-23510](https://nvd.nist.gov/vuln/detail/CVE-2022-23510), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23510 · Whole record: https://cve.day/CVE-2022-23510.json · Rebuilt by cve.day 2026-11-25T22:58:17.342Z
