metabase: Externally Controlled Reference to a Resource in Another Sphere
CVE-2022-24854 is a high-severity externally controlled reference to a resource in another sphere vulnerability in metabase, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected metabase versions: >= 1.41.0, < 1.41.7; >= 0.41.0, < 0.41.7; >= 1.42.0, < 1.42.4, and others listed below. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 1.05% chance of exploitation within 30 days, higher than 65% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of metabase you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| 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 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.0 | High | CNA (github.com) |
| CVSS 3.1 | 8.8 | High | NVD |
| CVSS 2.0 | 6.5 | Medium | NVD |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Externally Controlled Reference to a Resource in Another Sphere
The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.
More Externally Controlled Reference to a Resource in Another Sphere vulnerabilities (CWE-610)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/metabase/metabase/security/advisories/GHSA-vm79-xvmp-7329Release Notes, Third Party Advisory
Third-party and government advisories
- sqlite.org/lang_attach.htmlThird Party Advisory
Other vulnerabilities in metabase
- 9.3 Critical severity
- 10.0 Critical severity
- 10.0 Critical severity
Metabase SQL Injection Exploited
- 9.1 Critical severity
- 7.6 High severity
- 8.8 High severity
Spotted an error? Tell us.