Vulnerability · Published Apr 14, 2022 · Assigned by GitHub_M
CVE-2022-24854Database bypassing any permissions in Metabase via SQlite attach
High 8.0
In plain English
A high-severity security flaw in metabase from metabase. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities).
Official description
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 `?limit_attached=0`, which will disallow making connections to other SQLite databases. Only users making use of SQLite are affected.
Affected products (as reported)
Weakness: CWE-610 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/metabase/metabase/security/advisories/GHSA-vm79-xvmp-7329 x_refsource_CONFIRM
- https://www.sqlite.org/lang_attach.html x_refsource_MISC