CVE-2025-5874 Details
Description
A vulnerability was found in Redash up to 10.1.0/25.1.0. It has been rated as problematic. This issue affects the function run_query of the file /query_runner/python.py of the component getattr Handler. The manipulation leads to sandbox issue. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The vendor explains, that "[t]he Python data source is disabled by default and is clearly marked in our documentation as discouraged due to its security implications. Users who choose to enable it are doing so at their own risk, with full awareness that it bypasses standard safeguards."
A critical vulnerability allowing sandbox escape has been identified in Redash versions prior to 10.1.0 and 25.1.0. This issue arises in the Python query runner, specifically within the 'run_query' function of the 'query_runner/python.py' file. The vulnerability is caused by the improper handling of the 'getattr' built-in function, which was meant to be replaced by a secure version but instead allows for unauthorized access to Python's object model. This flaw can be exploited without needing to import additional modules, leading to potential remote code execution.
It is recommended to use the secure '_getattr_' and 'getattr' functions provided by RestrictedPython, along with hardened built-ins to maintain proper sandbox isolation. Additionally, consider running Python queries in isolated containers and applying Linux sandboxing techniques such as AppArmor or seccomp.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 9, 2025CISA-ADP
Assessed Jun 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/superboy-zjc/1f89d375e2408ed843dc2cf0bb1bb894 | [email protected] | ExploitRemedyTechnical Analysis |
| https://gist.github.com/superboy-zjc/1f89d375e2408ed843dc2cf0bb1bb894#proof-of-concept | [email protected] | |
| https://vuldb.com/?ctiid.311633 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/?id.311633 | [email protected] | AdvisoryExploitTechnical Description |
| https://vuldb.com/?submit.580255 | [email protected] | ExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-264 | Permissions, Privileges, and Access Controls | [email protected] |
| CWE-265 | Privilege Issues | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Redash | <= 10.1.0 (semver) <= 25.1.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Jul 16, 2025 | CVE Modified | [email protected] |
| Jun 9, 2025 | New CVE Received | [email protected] |
Volerion