PoC Monitor
← All CVEs
CVE-2021-41277published 17 Nov 2021 20:05 UTCData: JSON · API

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.

First public PoC 3.6 daysafter publication · 21 Nov 2021
Public PoCs1413 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS10.0critical · scored by CNA · CWE-200
CISA KEV 12 Nov 20243.0 years after publication

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900+1080CVE published17 Nov 2021 · t = 0First public PoC21 Nov 2021 · t+3.6dAdded to CISA KEV12 Nov 2024 · t+3.0y

First 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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 7 days before the repo

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
RepositoryCreatedStarsAssessment
Seals6/CVE-2021-41277 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 1
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Metabase - Local File Inclusion27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 13 PoC repos

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 /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" in multipart/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" in multipart/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.

GET /api/geojson
(?i)^/api/geojson\?(?:.*&)?url=file://.*url=file:/etc/passwd.*url=file:///etc/passwd.*url=file:////etc/passwd
GET /$2
(?i)^/\$2(?:[?#].*)?$
GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
(?i)^//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp//authenticationendpoint/abc\.jsp\?(?:.*&)?cmd=ls
GET /abc.jsp
(?i)^/abc\.jsp(?:[?#].*)?$
GET /api/v1/search/all
(?i)^/api/v1/search/all\?(?:.*&)?email=.*key=.*qbase64=.*size=100

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /api/geojson
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;)
GET /$2
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;)
GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
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;)
GET /abc.jsp
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;)
GET /api/v1/search/all
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.

GET /api/geojson
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
GET /$2
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
GET //authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp//authenticationendpoint/abc.jsp
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
GET /abc.jsp
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
GET /api/v1/search/all
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