Metabase
Metabase: Arbitrary File Read/Write via Unsafe H2 Built-in Functions
Metabase is an open source business intelligence and analytics platform. From 1.55.0 until 1.58.16, 1.59.13, 1.60.9, and 1.61.4, native queries and actions against an H2 data source are passed through without restricting host-facing built-in functions. A user authorized to run native queries or actions can invoke FILE_READ, FILE_WRITE, CSVREAD, CSVWRITE, or LINK_SCHEMA to read or write arbitrary files on the Metabase server or link other databases. The default sample database uses H2, so the vulnerable surface is exposed by default. This issue is fixed in versions 1.58.16, 1.59.13, 1.60.9, and 1.61.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.55.0, < 1.58.16
- >= 1.59.0, < 1.59.13
- >= 1.60.0, < 1.60.9
- >= 1.61.0, < 1.61.4
- >= 0.55.0, < 0.58.15.3
- >= 0.59.0, < 0.59.12.1
- >= 0.60.0, < 0.60.8.1
- >= 0.61.0, < 0.61.3.4
Fixed in 1.58.16, 1.59.13, 1.60.9, 1.61.4, 0.58.15.3, 0.59.12.1, 0.60.8.1, 0.61.3.4
Mitigation
Upgrade metabase to 1.58.16 or 1.59.13 or 1.60.9 or 1.61.4 or 0.58.15.3 or 0.59.12.1 or 0.60.8.1 or 0.61.3.4 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.