CVE-2021-41277 Metabase GeoJSON API Local File Inclusion

Exploited in the wild Critical 10.0 Published Updated

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.

Weakness: CWE-22, CWE-200

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.

Sources

Also known as GHSA-w73v-6p7p-fpfr.

Is CVE-2021-41277 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free