Metabase: Arbitrary File Read/Write via Unsafe H2 Built-in Functions
- Published
- Last modified
- Status
- published
- Known exploitation
- Not listed in CISA KEV
- Fix
- Fixed in 1.58.16, 1.59.13, 1.60.9, 1.61.4, 0.58.15.3, and 3 more
- Public exploit
- None on Exploit-DB
- Exploitation: none
- Automatable: yes
- Technical impact: total
?
Decision points from CISA's Vulnrichment, assessed (SSVC 2.0.3).
SSVC documentationSummary
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
- metabase metabase
From 1.55.0 · fixed in 1.58.16; From 1.59.0 · fixed in 1.59.13; From 1.60.0 · fixed in 1.60.9; From 1.61.0 · fixed in 1.61.4; From 0.55.0 · fixed in 0.58.15.3; From 0.59.0 · fixed in 0.59.12.1; From 0.60.0 · fixed in 0.60.8.1; From 0.61.0 · fixed in 0.61.3.4