CVE-2022-24854: Database bypassing any permissions in Metabase via SQlite attach

Published Apr 14, 2022
·
Updated

Metabase is an open source business intelligence and analytics application. SQLite has an FDW-like feature called ATTACH DATABASE, which allows connecting multiple SQLite databases via the initial connection. If the attacker has SQL permissions to at least one SQLite database, then it can attach this database to a second database, and then it can query across all the tables. To be able to do that the attacker also needs to know the file path to the second database. Users are advised to upgrade as soon as possible. If you're unable to upgrade, you can modify your SQLIte connection strings to contain the url argument ?limitattached=0, which will disallow making connections to other SQLite databases. Only users making use of SQLite are affected.

Affected Software

4 affected components
Metabase>=0.41.0<0.41.7
Metabase>=0.42.0<0.42.4
Metabase>=1.41.0<1.41.7
Metabase>=1.42.0<1.42.4

Event History

Apr 14, 2022
CVE Published
via MITRE·09:40 PM
Data Sourced
via MITRE·09:40 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is CVE-2022-24854?

CVE-2022-24854 is a vulnerability that allows an attacker with SQL permissions to attach arbitrary SQLite databases and potentially execute arbitrary SQL.

2

What is the severity of CVE-2022-24854?

CVE-2022-24854 has a severity rating of 8.8, which is considered high.

3

How does CVE-2022-24854 affect Metabase?

CVE-2022-24854 affects Metabase versions 0.41.0 to 0.41.7 and 0.42.0 to 0.42.4, as well as versions 1.41.0 to 1.41.7 and 1.42.0 to 1.42.4.

4

How can an attacker exploit CVE-2022-24854?

An attacker with SQL permissions to at least one SQLite database can exploit CVE-2022-24854 by using the 'ATTACH DATABASE' feature to connect and execute arbitrary SQL on additional SQLite databases.

5

Is there a fix for CVE-2022-24854?

Yes, the fix for CVE-2022-24854 is available in the latest versions of Metabase. It is recommended to update to a patched version to mitigate the vulnerability.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203