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

High 8.0 Published Updated

An attacker with SQL permissions can bypass access controls to read data from other SQLite databases by using the ATTACH DATABASE feature.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-24854?

CVE-2022-24854 is a high-severity missing authorization vulnerability in metabase, published on 14 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim.

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.

Weakness: CWE-610

Which versions are affected by CVE-2022-24854?

It affects 1 product.

Products include Metabase Metabase.

How do I fix CVE-2022-24854?

No fix has been published for CVE-2022-24854 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-24854 being exploited?

There is no known exploitation of CVE-2022-24854 in the wild and no public exploit code.

Sources

Also known as GHSA-vm79-xvmp-7329.

Is CVE-2022-24854 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free