CWE
94 89
Advisory Published
Updated

CVE-2023-37470: Code Injection

First published: Fri Aug 04 2023(Updated: )

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.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Metabase Metabase<0.43.7.3
Metabase Metabase<1.43.7.3
Metabase Metabase>=0.44.0<0.44.7.3
Metabase Metabase>=0.45.0<0.45.4.3
Metabase Metabase>=0.46.0<0.46.6.4
Metabase Metabase>=1.44.0<1.44.7.3
Metabase Metabase>=1.45.0<1.45.4.3
Metabase Metabase>=1.46.0<1.46.6.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2023-37470?

    CVE-2023-37470 is a vulnerability in Metabase that could potentially allow remote code execution on one's Metabase server.

  • What is the severity of CVE-2023-37470?

    The severity of CVE-2023-37470 is critical with a CVSS score of 9.8.

  • How does CVE-2023-37470 impact the affected software?

    CVE-2023-37470 can allow remote code execution on Metabase servers running versions prior to 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.

  • How can I fix CVE-2023-37470?

    To fix CVE-2023-37470, users should update their Metabase server to version 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, or 1.46.6.4.

  • Where can I find more information about CVE-2023-37470?

    You can find more information about CVE-2023-37470 at the following link: [https://github.com/metabase/metabase/security/advisories/GHSA-p7w3-9m58-rq83](https://github.com/metabase/metabase/security/advisories/GHSA-p7w3-9m58-rq83)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203