# CVE-2026-33142: OneUptime: ClickHouse SQL Injection via unvalidated column identifiers in sort, select, and groupBy parameters

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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.33%, higher than 28% of CVEs (2026-12-02)
- Published: 2026-03-18T16:34:18.000Z
- Modified: 2026-10-07T08:10:00.200Z
- Also known as: GHSA-gcg3-c5p2-cqgg
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OneUptime is a solution for monitoring and managing online services. Prior to version 10.0.34, the fix for CVE-2026-32306 (ClickHouse SQL injection via aggregate query parameters) added column name validation to the _aggregateBy method but did not apply the same validation to three other query construction paths in StatementGenerator. The toSortStatement, toSelectStatement, and toGroupByStatement methods accept user-controlled object keys from API request bodies and interpolate them as ClickHouse Identifier parameters without verifying they correspond to actual model columns. ClickHouse Identifier parameters are substituted directly into queries without escaping, so an attacker who can reach any analytics list or aggregate endpoint can inject arbitrary SQL through crafted sort, select, or groupBy keys. This issue has been patched in version 10.0.34.

(As written by CVE List.)

## Affected

- OneUptime oneuptime: < 10.0.34
- oneuptime (npm): before 10.0.34
- hackerbay oneuptime: before 10.0.34

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/OneUptime/oneuptime/security/advisories/GHSA-gcg3-c5p2-cqgg> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33142> (advisory)
- <https://github.com/OneUptime/oneuptime> (package)

## Sources

- CVE List: [CVE-2026-33142](https://www.cve.org/CVERecord?id=CVE-2026-33142), CVE Terms of Use, modified 2026-03-25
- GitHub Advisory Database: [GHSA-gcg3-c5p2-cqgg](https://github.com/advisories/GHSA-gcg3-c5p2-cqgg), CC-BY-4.0, modified 2026-03-20
- NVD: [CVE-2026-33142](https://nvd.nist.gov/vuln/detail/CVE-2026-33142), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2026-33142 · Whole record: https://cve.day/CVE-2026-33142.json · Rebuilt by cve.day 2026-11-25T22:59:16.339Z
