CVE-2022-24854
JSON

8.0high

Database bypassing any permissions in Metabase via SQlite attach

Severity
8.0high CVSS:3.1 by GitHub_M
Exploit likelihood
1.05% (higher than 64% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
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.4CVE List, NVD

All scores

GitHub_M8.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

CWE-610

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Metabase es una aplicación de análisis e inteligencia empresarial de código abierto. SQLite presenta una característica similar a FDW llamada "ATTACH DATABASE", que permite conectar múltiples bases de datos SQLite por medio de la conexión inicial. Si el atacante presenta permisos de SQL en al menos una base de datos SQLite, entonces puede adjuntar esta base de datos a una segunda base de datos, y entonces puede consultar todas las tablas. Para poder hacer esto, el atacante también necesita conocer la ruta del archivo de la segunda base de datos. Es recomendado a usuarios actualizar lo antes posible. Si no puedes actualizar, puedes modificar tus cadenas de conexión SQLIte para que contengan el argumento url "?limit_attached=0", que deshabilitará la realización de conexiones a otras bases de datos SQLite. Sólo estarán afectados los usuarios que usen SQLite

References

Sources

SourceRecordLicence
CVE ListCVE-2022-24854 changed 2025-04-23CVE Terms of Use
NVDCVE-2022-24854 changed 2026-06-17Public domain