Metabase
GeoJSON URL validation can expose server files and environment variables to unauthorized users
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.
Timeline
Days relative to CVE publicationFirst public PoC 3.6 days after publication; added to CISA KEV 3.0 years after publication. First PoC: tahtaciburak/CVE-2021-41277 (created 21 Nov 2021, found by us: backfilled).
PoC repositories
Found on GitHub.13 PoCs · 1 pending · 1 informational
PoCs 13
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| tahtaciburak/CVE-2021-41277 | 21 Nov 2021 +3.6 d | 11 | PoC |
| Henry4E36/Metabase-cve-2021-41277 | 22 Nov 2021 +4.3 d | 0 | PoC |
| kap1ush0n/CVE-2021-41277 | 22 Nov 2021 +4.7 d | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| z3n70/CVE-2021-41277 | 22 Nov 2021 +4.9 d | 5 | PoC |
| kaizensecurity/CVE-2021-41277 | 23 Nov 2021 +5.4 d | 0 | PoC via PoC Index |
| Vulnmachines/Metabase_CVE-2021-41277 | 23 Nov 2021 +5.9 d | 4 | PoC via PoC Index |
| TheLastVvV/CVE-2021-41277 | 24 Nov 2021 +6.4 d | 0 | PoC |
| zer0yu/CVE-2021-41277 | 6 Dec 2021 +19 d | 9 | PoC |
| grey-master-a/Metabase_Nmap_Script | 19 Jan 2022 +63 d | 0 | Scanner |
| Chen-ling-afk/CVE-2021-41277 | 11 Mar 2022 +113 d | 1 | PoC |
| chengling-ing/CVE-2021-41277 | 11 Mar 2022 +113 d | 1 | PoC |
| KatherineHuangg/metasploit-POC | 13 Jul 2022 +238 d | 0 | PoC via PoC Index |
| RubXkuB/PoC-Metabase-CVE-2021-41277 | 24 Apr 2023 +1.4 y | 1 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Seals6/CVE-2021-41277 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| sasukeourad/CVE-2021-41277_SSRF | 10 Jan 2022 +53 d | 4 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Metabase - Local File Inclusion | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 13 PoC reposGET /api/geojson
- Query
url=file://url=file:/etc/passwdurl=file:///etc/passwdurl=file:////etc/passwd- Ports
- 443
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0- Seen in
- 5 repos: RubXkuB/PoC-Metabase-CVE-2021-41277, Vulnmachines/Metabase_CVE-2021-41277, grey-master-a/Metabase_Nmap_Script, kap1ush0n/CVE-2021-41277, tahtaciburak/CVE-2021-41277
- Evidence
- RubXkuB/PoC-Metabase-CVE-2021-41277/Metabase-Checker-CVE-2021–41277.py:21 RubXkuB/PoC-Metabase-CVE-2021-41277/Metabase-Checker-CVE-2021–41277.py:28 Vulnmachines/Metabase_CVE-2021-41277/payload:1 grey-master-a/Metabase_Nmap_Script/metabase.nse:61 grey-master-a/Metabase_Nmap_Script/metabase.nse:63 kap1ush0n/CVE-2021-41277/CVE-2021-41277.py:27
GET /$2
- Seen in
- 1 repo: TheLastVvV/CVE-2021-41277
- Evidence
- TheLastVvV/CVE-2021-41277/CVE-2021-41277.sh:9
GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
- Query
cmd=ls- Seen in
- 1 repo: KatherineHuangg/metasploit-POC
- Evidence
- KatherineHuangg/metasploit-POC/CVE-2022-29464/wso2_file_upload_rce.py:82
GET /abc.jsp
GET /api/v1/search/all
- Query
email=key=qbase64=size=100- Seen in
- 1 repo: kap1ush0n/CVE-2021-41277
- Evidence
- kap1ush0n/CVE-2021-41277/CVE-2021-41277.py:16
GET /etc/passwd
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0- Seen in
- 1 repo: Henry4E36/Metabase-cve-2021-41277
- Evidence
- Henry4E36/Metabase-cve-2021-41277/Metabase-cve-2021-41277.py:33 Henry4E36/Metabase-cve-2021-41277/Metabase-cve-2021-41277.py:50
POST //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp/fileupload/toolsAny
- Body markers
name="../../../../repository/deployment/server/webapps/authenticationendpoint/abc.jsp"inmultipart/form-data- Seen in
- 1 repo: KatherineHuangg/metasploit-POC
- Evidence
- KatherineHuangg/metasploit-POC/CVE-2022-29464/wso2_file_upload_rce.py:73
POST /api/content/
- Body markers
name="../../../../../../../../../srv/dotserver/tomcat-9.0.41/webapps/ROOT/html/js/dojo/abc.jsp"inmultipart/form-data- Seen in
- 1 repo: KatherineHuangg/metasploit-POC
- Evidence
- KatherineHuangg/metasploit-POC/CVE-2022-26352/dotcms_file_upload_rce.py:72
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/geojson\?(?:.*&)?url=file://.*url=file:/etc/passwd.*url=file:///etc/passwd.*url=file:////etc/passwd
(?i)^/\$2(?:[?#].*)?$
(?i)^//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp\?(?:.*&)?cmd=ls
(?i)^/abc\.jsp(?:[?#].*)?$
(?i)^/api/v1/search/all\?(?:.*&)?email=.*key=.*qbase64=.*size=100
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [443] (msg:"GG PoC-Monitor CVE-2021-41277 metabase metabase exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/geojson"; http.uri; content:"url=file://"; http.uri; content:"url=file:/etc/passwd"; http.uri; content:"url=file:///etc/passwd"; http.uri; content:"url=file:////etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2021-41277; classtype:web-application-attack; sid:9583816; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-41277 metabase metabase exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/$2"; reference:url,poc.griffinguard.io/cve/CVE-2021-41277; classtype:web-application-attack; sid:9275678; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-41277 metabase metabase exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp"; http.uri; content:"cmd=ls"; reference:url,poc.griffinguard.io/cve/CVE-2021-41277; classtype:web-application-attack; sid:9846032; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-41277 metabase metabase exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/abc.jsp"; reference:url,poc.griffinguard.io/cve/CVE-2021-41277; classtype:web-application-attack; sid:9353911; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-41277 metabase metabase exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/search/all"; http.uri; content:"email="; http.uri; content:"key="; http.uri; content:"qbase64="; http.uri; content:"size=100"; reference:url,poc.griffinguard.io/cve/CVE-2021-41277; classtype:web-application-attack; sid:9441437; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: metabase metabase exploit attempt (CVE-2021-41277)
id: gg-pocmon-cve-2021-41277-9583816
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-41277. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-41277
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/geojson'
cs-uri-query|contains|all:
- 'url=file://'
- 'url=file:/etc/passwd'
- 'url=file:///etc/passwd'
- 'url=file:////etc/passwd'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.41277
title: metabase metabase exploit attempt (CVE-2021-41277)
id: gg-pocmon-cve-2021-41277-9275678
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-41277. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-41277
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/$2'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.41277
title: metabase metabase exploit attempt (CVE-2021-41277)
id: gg-pocmon-cve-2021-41277-9846032
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-41277. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-41277
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp'
cs-uri-query|contains|all:
- 'cmd=ls'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.41277
title: metabase metabase exploit attempt (CVE-2021-41277)
id: gg-pocmon-cve-2021-41277-9353911
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-41277. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-41277
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/abc.jsp'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.41277
title: metabase metabase exploit attempt (CVE-2021-41277)
id: gg-pocmon-cve-2021-41277-9441437
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-41277. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-41277
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/search/all'
cs-uri-query|contains|all:
- 'email='
- 'key='
- 'qbase64='
- 'size=100'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.41277