CVE-2023-37470
published critical CVSS 3.1 · 10.0Metabase vulnerable to remote code execution via POST /api/setup/validate API endpoint
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| metabase | — | metabase< 0.43.7.3 · >= 0.44.0.0, < 0.44.7.3 · >= 0.45.0.0, < 0.45.4.3 · >= 0.46.0.0, < 0.46.6.4 · >= 1.0.0, < 1.43.7.3 · >= 1.44.0.0, < 1.44.7.3 · >= 1.45.0.0, < 1.45.4.3 · >= 1.46.0.0, < 1.46.6.4 | Affected | Not stated | GitHub_M |
Description
Metabase is an open-source business intelligence and analytics platform. Prior to versions 0.43.7.3, 0.44.7.3, 0.45.4.3, 0.46.6.4, 1.43.7.3, 1.44.7.3, 1.45.4.3, and 1.46.6.4, a vulnerability could potentially allow remote code execution on one's Metabase server. The core issue is that one of the supported data warehouses (an embedded in-memory database H2), exposes a number of ways for a connection string to include code that is then executed by the process running the embedded database. Because Metabase allows users to connect to databases, this means that a user supplied string can be used to inject executable code. Metabase allows users to validate their connection string before adding a database (including on setup), and this validation API was the primary vector used as it can be called without validation. Versions 0.43.7.3, 0.44.7.3, 0.45.4.3, 0.46.6.4, 1.43.7.3, 1.44.7.3, 1.45.4.3, and 1.46.6.4 fix this issue by removing the ability of users to add H2 databases entirely. As a workaround, it is possible to block these vulnerabilities at the network level by blocking the endpoints `POST /api/database`, `PUT /api/database/:id`, and `POST /api/setup/validateuntil`. Those who use H2 as a file-based database should migrate to SQLite.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| metabase | metabase | < 0.43.7.3 (affected)>= 0.44.0.0, < 0.44.7.3 (affected)>= 0.45.0.0, < 0.45.4.3 (affected)>= 0.46.0.0, < 0.46.6.4 (affected)>= 1.0.0, < 1.43.7.3 (affected)>= 1.44.0.0, < 1.44.7.3 (affected)>= 1.45.0.0, < 1.45.4.3 (affected)>= 1.46.0.0, < 1.46.6.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
1Provider assertions
3GitHub_M · cna
Metabase vulnerable to remote code execution via POST /api/setup/validate API endpoint
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1aef3e7cd18e8bf155bc6e0155e5202dde891ecc640091dfe3cc9a268e42d011
- Ingested
- 23 Sep 2026, 08:10:12 UTC
- Source record
- Official CVE record