CVE-2023-38646 in metabase
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
Metabase open source before 0.46.6.1 and Metabase Enterprise before 1.46.6.1 allow attackers to execute arbitrary commands on the server, at the server's privilege level. Authentication is not required for exploitation. The other fixed versions are 0.45.4.1, 1.45.4.1, 0.44.7.1, 1.44.7.1, 0.43.7.2, and 1.43.7.2.
Affected software: metabase
Scores
- CVSS: 9.8 (critical)
- EPSS: 99.78% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2023-07-21
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Metabase to 0.46.6.1 / 1.46.6.1 or a patched backport (CVE-2023-38646)
Patch or upgrade. Metabase open source before 0.46.6.1 and Enterprise before 1.46.6.1 keep the setup token reachable after install, so an unauthenticated attacker runs commands on the server through the setup validate endpoint. Upgrading to a fixed release removes the flaw.
Applies to: Metabase open source before 0.46.6.1 and Metabase Enterprise before 1.46.6.1 (except the patched backports).
- Find the Metabase version: Admin settings, Troubleshooting, or the About Metabase menu.
- Back up the Metabase application database (the H2 file or the external Postgres/MySQL database).
- Upgrade to 0.46.6.1 / 1.46.6.1 or later, or to the patched backport of your line (0.45.4.1, 0.44.7.1, 0.43.7.2 and the 1.x equivalents): replace the metabase.jar or pull the matching metabase/metabase Docker image.
- If you cannot upgrade at once, block /api/setup/ on the reverse proxy and keep Metabase off the internet.
- If the instance was reachable before patching, look for unknown admin users, unknown database connections and processes started by the Metabase user, and rotate the credentials of connected databases.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.