The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-41277

CVE-2021-41277: Metabase Path Traversal Vulnerability

CVE-2021-41277 is a path traversal vulnerability in Metabase that enables local file inclusion through custom GeoJSON maps. This post covers the technical details, affected versions, security impact, and mitigation steps.

Published: March 4, 2026

CVE-2021-41277 Overview

CVE-2021-41277 is a Local File Inclusion (LFI) vulnerability affecting Metabase, an open source data analytics platform. The vulnerability exists in the custom GeoJSON map feature (admin->settings->maps->custom maps->add a map) where URLs were not validated prior to being loaded. This allows attackers to perform local file inclusion attacks, potentially exposing sensitive files including environment variables from the server.

Critical Impact

This vulnerability is actively exploited in the wild and has been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. Attackers can leverage this flaw to read sensitive local files and environment variables from vulnerable Metabase instances without authentication.

Affected Products

  • Metabase Open Source versions 0.40.0 through 0.40.4
  • Metabase Enterprise versions 1.40.0 through 1.40.4
  • All prior versions containing the custom GeoJSON map feature

Discovery Timeline

  • 2021-11-17 - CVE-2021-41277 published to NVD
  • 2025-10-24 - Last updated in NVD database

Technical Details for CVE-2021-41277

Vulnerability Analysis

The vulnerability resides in how Metabase handles URL input for the custom GeoJSON map feature. When administrators or users with sufficient privileges add a custom map, the application accepts a URL parameter specifying the location of the GeoJSON data. Due to insufficient input validation, the application fails to restrict this URL to legitimate remote resources, allowing attackers to specify local file paths using file protocol handlers or path traversal sequences.

This Path Traversal (CWE-22) and Information Exposure (CWE-200) vulnerability enables attackers to read arbitrary files from the server filesystem that the Metabase process has access to. The impact is particularly severe because environment variables often contain sensitive configuration data, database credentials, API keys, and other secrets that could facilitate further attacks.

Root Cause

The root cause of this vulnerability is the lack of URL validation in the custom GeoJSON map functionality. The application accepts user-supplied URLs without verifying that they point to legitimate external HTTP/HTTPS resources. This missing validation allows attackers to supply file:// protocol URLs or relative path traversal sequences that the server then processes, inadvertently reading and returning local file contents.

Attack Vector

The attack exploits the custom GeoJSON map feature accessible through Metabase's settings interface. An attacker can craft a malicious request to the API endpoint responsible for fetching GeoJSON data, substituting the expected remote URL with a path pointing to local files. When the server processes this request, it reads the specified local file and returns its contents to the attacker.

The attack can be executed remotely over the network without requiring any user interaction. While the feature is typically an admin function, the vulnerability can potentially be exploited by any user who can access the relevant API endpoint, depending on the Metabase configuration and access controls in place.

For technical details on the exploitation mechanism, refer to the GitHub Security Advisory which contains comprehensive information about the attack vector.

Detection Methods for CVE-2021-41277

Indicators of Compromise

  • Unusual requests to GeoJSON-related API endpoints containing file path patterns or traversal sequences (e.g., ../, file://)
  • HTTP requests to Metabase endpoints with parameters referencing local system paths like /etc/passwd or environment file locations
  • Access logs showing requests to custom map API endpoints from unexpected sources or at unusual times
  • Evidence of sensitive file access in server logs that correlate with Metabase API activity

Detection Strategies

  • Implement WAF rules to detect and block requests containing path traversal patterns (../, ..\\) or file protocol handlers (file://) in GeoJSON URL parameters
  • Monitor Metabase application logs for failed or unusual map configuration requests
  • Deploy network-based intrusion detection signatures that identify LFI attack patterns targeting Metabase endpoints
  • Conduct regular log analysis focusing on the custom maps API endpoints for anomalous access patterns

Monitoring Recommendations

  • Enable verbose logging for Metabase API requests, particularly those related to settings and map configurations
  • Set up alerts for any requests to GeoJSON endpoints that contain suspicious path patterns
  • Monitor outbound connections from the Metabase server to detect any data exfiltration attempts
  • Review CISA's Known Exploited Vulnerabilities Catalog for updated threat intelligence

How to Mitigate CVE-2021-41277

Immediate Actions Required

  • Upgrade Metabase immediately to version 0.40.5 (Open Source) or 1.40.5 (Enterprise) or any subsequent release
  • Audit Metabase access logs for any evidence of exploitation attempts prior to patching
  • Review and rotate any credentials or secrets that may have been exposed through environment variables
  • Restrict access to Metabase administrative functions to trusted users only

Patch Information

Metabase has released security patches in maintenance releases 0.40.5 and 1.40.5 that address this vulnerability. The fix is included in all subsequent releases. Organizations should upgrade to the latest available version to ensure they receive this and any additional security fixes. The specific commit addressing this issue can be reviewed in the GitHub Commit.

Workarounds

  • If immediate upgrade is not possible, implement validation rules in your reverse proxy, load balancer, or WAF to filter requests before they reach the Metabase application
  • Block requests containing path traversal sequences (../) or file protocol handlers (file://) in URL parameters
  • Restrict network access to Metabase administrative interfaces to trusted IP ranges only
  • Consider temporarily disabling the custom GeoJSON map feature if it is not required for operations
bash
# Example nginx configuration to block LFI attempts
location /api/geojson {
    # Block requests with path traversal or file protocol
    if ($request_uri ~* "(\.\.\/|file:\/\/)") {
        return 403;
    }
    proxy_pass http://metabase_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMetabase

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability94.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-200

  • CWE-22
  • Technical References
  • CISA Known Exploitable Vulnerability
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27464: Metabase Information Disclosure Flaw

  • CVE-2026-22805: Metabase Information Disclosure Flaw

  • CVE-2023-38646: Metabase RCE Vulnerability Explained

  • CVE-2023-37470: Metabase H2 Database RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English