Redash
Redash: SQL Injection via Query Results parameterized query substitution
Redash is a package for data visualization and sharing. From versions after 8.0.0 until 26.9.0, the Query Results query runner in redash/query_runner/query_results.py accepts param_query_N_{key=value} parameters and passed attacker-controlled values to replace_query_parameters() for raw substitution into a referenced query's SQL. This path bypassed the ParameterizedQuery schema validation used by normal query execution and omitted the is_safe permission check. An authenticated user with at least view-only access to both the Query Results data source and the referenced data source could therefore inject SQL through text parameters and execute it with the referenced data source's privileges. This issue is fixed in version 26.9.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- > 8.0.0, < 26.9.0
Fixed in 26.9.0
Mitigation
Upgrade redash to 26.9.0 or later.
References
- Vendor advisory github.com/getredash/redash/security/advisorie…
- Patch github.com/getredash/redash/commit/048bcd9fe72…
- Release notes github.com/getredash/redash/releases/tag/v26.9…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.