{"id":"CVE-2026-33142","published":"2026-03-20T20:05:19Z","modified":"2026-03-25T13:42:27Z","title":"OneUptime: ClickHouse SQL Injection via unvalidated column identifiers in sort, select, and groupBy parameters","vendor":"OneUptime","product":"oneuptime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00332,"percentile":0.27044,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/OneUptime/oneuptime/security/advisories/GHSA-gcg3-c5p2-cqgg","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":5.41},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"oneuptime","affectedVersions":[{"vendor":"OneUptime","product":"oneuptime","versions":["< 10.0.34"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-25T13:41:51.659491Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"oneuptime","vulnerableRanges":["<10.0.34"],"patched":["10.0.34"],"from":["GHSA-gcg3-c5p2-cqgg"],"provenance":"source"}],"summary":{"text":"OneUptime, prior to version 10.0.34, fails to validate column identifiers in the sort, select, and groupBy parameters of its ClickHouse query construction in the StatementGenerator component, so user-supplied keys are interpolated into queries without being checked against real model columns. An authenticated attacker with network access who can reach any analytics list or aggregate endpoint can craft these keys to inject arbitrary SQL, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:53Z"},"euvd":{"id":"EUVD-2026-13778","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-32306","published":"2026-03-12","fixed":"10.0.23","kev":false},{"cve":"CVE-2026-32308","published":"2026-03-12","fixed":"10.0.23","kev":false},{"cve":"CVE-2026-32598","published":"2026-03-12","fixed":"10.0.23","kev":false,"link":{"from":"CVE-2026-32598","to":"CVE-2026-33142","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:oneuptime","fromFixed":"10.0.23","toFixed":"10.0.34","daysApart":8}]}},{"cve":"CVE-2026-33142","published":"2026-03-20","fixed":"10.0.34","kev":false},{"cve":"CVE-2026-33143","published":"2026-03-20","fixed":"10.0.34","kev":false}],"package":"npm:oneuptime"}}