CVE-2023-32680

Missing SQL permissions check in metabase

State
Published
Severity
5.8 Medium
Published
May 18, 2023
Updated
Feb 12, 2025
Reserved
May 11, 2023

Read the record on cve.org

Description

Metabase is an open source business analytics engine. To edit SQL Snippets, Metabase should have required people to be in at least one group with native query editing permissions to a database–but affected versions of Metabase didn't enforce that requirement. This lack of enforcement meant that: Anyone–including people in sandboxed groups–could edit SQL snippets. They could edit snippets via the API or, in the application UI, when editing the metadata for a model based on a SQL question, and people in sandboxed groups could edit a SQL snippet used in a query that creates their sandbox. If the snippet contained logic that restricted which data that person could see, they could potentially edit that snippet and change their level of data access. The permissions model for SQL snippets has been fixed in Metabase versions 0.46.3, 0.45.4, 0.44.7, 1.46.3, 1.45.4, and 1.44.7. Users are advised to upgrade. Users unable to upgrade should ensure that SQL queries used to create sandboxes exclude SQL snippets.

Scores

CVSSScoreVectorSource
3.15.8 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:NGitHub_M

Weaknesses

  • CWE-306 Missing Authentication for Critical Function

Affected Products

ProductVersions
metabasemetabase
  • < 0.44.7Affected
  • >= 1.0.0, < 1.44.7Affected
  • >= 0.45.0, < 0.45.4Affected
  • >= 1.0.0, < 1.45.4Affected
  • >= 0.46.0, < 0.46.3Affected
  • >= 1.0.0, < 1.46.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.