CVE-2023-32680:Metabase SQL Snippet Permissions Bypass Vulnerability

splash
Back

Description Preview

A vulnerability in Metabase allows unauthorized users to edit SQL snippets due to improper permissions enforcement. This could allow users, including those in sandboxed groups, to modify SQL snippets and potentially escalate their data access privileges by altering snippets that define access restrictions.

Overview

CVE-2023-32680 affects Metabase, an open source business analytics engine. The vulnerability stems from a failure to properly enforce permissions for SQL snippet editing. Metabase should have required users to be in at least one group with native query editing permissions to a database before allowing them to edit SQL snippets, but this check was missing in affected versions.

As a result, any user, including those in sandboxed groups with restricted access, could edit SQL snippets through the API or when editing metadata for models based on SQL questions. This is particularly concerning when SQL snippets contain logic that restricts data access, as users could modify these snippets to bypass intended access controls and view data they shouldn't have permission to access.

Remediation

The vulnerability has been patched in the following Metabase versions:

  • 0.46.3
  • 0.45.4
  • 0.44.7
  • 1.46.3
  • 1.45.4
  • 1.44.7

Users should upgrade to one of these patched versions as soon as possible.

For users unable to immediately upgrade, a workaround is to ensure that SQL queries used to create sandboxes do not include SQL snippets, as these could be manipulated to bypass access controls.

References

  1. Vendor Advisory: https://github.com/metabase/metabase/security/advisories/GHSA-mw6j-f894-4qxv
  2. Patch: https://github.com/metabase/metabase/pull/30852
  3. Patch: https://github.com/metabase/metabase/pull/30853
  4. Patch: https://github.com/metabase/metabase/pull/30854

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Manufacturing
    Manufacturing
  2. Retail Trade
    Retail Trade
  3. Accommodation & Food Services
    Accommodation & Food Services
  4. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  5. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  6. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  7. Construction
    Construction
  8. Educational Services
    Educational Services
  9. Finance and Insurance
    Finance and Insurance
  10. Health Care & Social Assistance
    Health Care & Social Assistance
  11. Information
    Information
  12. Management of Companies & Enterprises
    Management of Companies & Enterprises
  13. Mining
    Mining
  14. Other Services (except Public Administration)
    Other Services (except Public Administration)
  15. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  16. Public Administration
    Public Administration
  17. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background
Armis Vulnerability Intelligence Database