Description
SigNoz versions 0.87.0 before 0.142.0 fail to escape user-supplied telemetry field-key names in the v5 query_range API, allowing authenticated users to inject SQL. Attackers with Viewer role or higher can embed backticks and quotes in field names to break out of identifiers and string literals, executing arbitrary ClickHouse SQL to read system tables and exfiltrate data.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
SigNoz signoz
Default version status: unaffected
0.87.0 to < 0.142.0affected0.142.0unaffected
pkg:golang/github.com/SigNoz/signozReferences
- https://github.com/SigNoz/signoz/security/advisories/GHSA-q3h7-gpc9-2rxc ↗
- https://github.com/SigNoz/signoz/commit/8e00c0405697659bd4994a5de446cf3028c0f76d ↗
- https://github.com/SigNoz/signoz/commit/9c886be12015c43a1465af3532b3c3afbec6bebc ↗
- https://github.com/SigNoz/signoz/releases/tag/v0.142.0 ↗
- https://github.com/SigNoz/signoz/blob/v0.141.1/pkg/querybuilder/fallback_expr.go#L16-L22 ↗
- https://github.com/SigNoz/signoz/blob/v0.141.1/pkg/telemetrymetadata/field_mapper.go#L79-L87 ↗
- https://github.com/SigNoz/signoz/blob/v0.141.1/pkg/apiserver/signozapiserver/querier.go#L26 ↗
- https://github.com/SigNoz/signoz ↗
- https://www.vulncheck.com/advisories/signoz-0.87.0-before-0.142.0-sql-injection-in-v5-query-builder-field-key-names ↗