CVE-2021-41277 Metabase GeoJSON API Local File Inclusion
Attackers can read server files and environment variables via unvalidated GeoJSON URLs in Metabase custom map settings.
- Exploited in the wild
- Since 12 Nov 2024
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-41277?
CVE-2021-41277 is a critical path traversal vulnerability in metabase, published on 17 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2021-41277?
It affects 1 product.
Products include Metabase Metabase.
How do I fix CVE-2021-41277?
No fix has been published for CVE-2021-41277 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 Dec 2024.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-41277 being exploited?
Yes. Attackers have exploited CVE-2021-41277 in the wild since at least 12 Nov 2024.
Public exploit code: 1 Nuclei template and 12 proofs of concept on GitHub.
Other vulnerabilities in metabase
- CVE-2026-72898 Metabase SQL Injection
- CVE-2026-50148 Metabase: Remote Code Execution via Snowflake JDBC Driver Arbitrary File Write
- CVE-2023-37470 Metabase vulnerable to remote code execution via POST /api/setup/validate API endpoint
- CVE-2026-59827 Metabase: Unsafe Deserialization of H2 Query Results
- CVE-2023-38646 Command injection in n/a
Sources
Also known as GHSA-w73v-6p7p-fpfr.