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

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 64% of CVEs (2026-11-30)
- Published: 2022-04-14T21:40:11.000Z
- Modified: 2026-06-17T04:32:39.937Z
- Weaknesses: CWE-610
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- metabase metabase: >= 1.41.0, < 1.41.7; >= 0.41.0, < 0.41.7; >= 1.42.0, < 1.42.4; >= 0.42.0, < 0.42.4; from 0.41.0 before 0.41.7; from 0.42.0 before 0.42.4; from 1.41.0 before 1.41.7; from 1.42.0 before 1.42.4

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/metabase/metabase/security/advisories/GHSA-vm79-xvmp-7329> (release-notes, third-party-advisory)
- <https://www.sqlite.org/lang_attach.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-24854](https://www.cve.org/CVERecord?id=CVE-2022-24854), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-24854](https://nvd.nist.gov/vuln/detail/CVE-2022-24854), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24854 · Whole record: https://cve.day/CVE-2022-24854.json · Rebuilt by cve.day 2026-11-25T22:58:10.645Z
