Actively exploited vulnerability / CVE-2021-41277
Metabase: attackers can read files and secret settings from the server
This flaw in Metabase's custom map feature lets an attacker read files from the server running the application, including environment variables that may hold passwords and access keys. For a business, this can expose connected databases and the business data analysed in Metabase. It is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2021-41277 · EUVD-2021-28310
- Severity
- Critical (10/10)
- On the CISA list (US)
- yes, since 12 November 2024
- Deadline given to US federal agencies
- 3 December 2024
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 97.2% (FIRST's estimate for the next 30 days)
Does it concern you?
Metabase is an open source data analytics and reporting platform that companies use to build dashboards and charts on top of their own databases. It is typically run by IT, data or management teams that want internal reports.
Ask whoever administers Metabase, or look up the version in the settings menu under the about section. Versions earlier than 0.40.5, or 1.40.5 for the commercial edition, are affected.
Affected products and versions
- Metabase
What to do
Update Metabase to version 0.40.5 or 1.40.5 or any later release. If you cannot update right away, have your IT team add filtering rules in the reverse proxy, load balancer or web application firewall, following the vendor's guidance.
The official description
The text below is the description from the public database.
Metabase is an open source data analytics platform. In affected versions a security issue has been discovered with the custom GeoJSON map (`admin->settings->maps->custom maps->add a map`) support and potential local file inclusion (including environment variables). URLs were not validated prior to being loaded. This issue is fixed in a new maintenance release (0.40.5 and 1.40.5), and any subsequent release after that. If you’re unable to upgrade immediately, you can mitigate this by including rules in your reverse proxy or load balancer or WAF to provide a validation filter before the application.
Sources
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.