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-2023-37470

CVE-2023-37470: Metabase H2 Database RCE Vulnerability

CVE-2023-37470 is a remote code execution vulnerability in Metabase affecting the H2 database connection string validation. Attackers can inject executable code through user-supplied strings. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-37470 Overview

CVE-2023-37470 is a critical remote code execution vulnerability affecting Metabase, a popular open-source business intelligence and analytics platform. The vulnerability exists in Metabase's handling of H2 embedded in-memory database connections, where specially crafted connection strings can be used to inject and execute arbitrary code on the server running Metabase.

The core issue stems from the H2 database engine exposing functionality that allows code execution through connection string parameters. Since Metabase permits users to configure database connections—including validating connection strings before adding them—attackers can exploit the validation API endpoint to execute malicious code without proper authentication.

Critical Impact

This vulnerability allows unauthenticated attackers to achieve remote code execution on Metabase servers by exploiting the database connection validation API with malicious H2 connection strings.

Affected Products

  • Metabase Open Source versions prior to 0.43.7.3, 0.44.7.3, 0.45.4.3, and 0.46.6.4
  • Metabase Enterprise versions prior to 1.43.7.3, 1.44.7.3, 1.45.4.3, and 1.46.6.4

Discovery Timeline

  • August 4, 2023 - CVE-2023-37470 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-37470

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code), also known as Code Injection. The flaw enables attackers to leverage the H2 database's connection string parsing behavior to execute arbitrary code in the context of the Metabase server process.

The H2 embedded database engine supports various JDBC URL parameters that can trigger code execution, including INIT scripts and TRACE_LEVEL_SYSTEM_OUT configurations. When Metabase processes a database connection request containing a malicious H2 connection string, the embedded database engine interprets and executes the injected code payloads.

The vulnerability is particularly severe because the primary attack vector—the connection validation API—can be invoked without prior authentication. This allows unauthenticated remote attackers to trigger code execution during the initial setup phase or through the validation endpoints.

Root Cause

The root cause of this vulnerability lies in Metabase's architecture allowing direct user input into H2 database connection strings without adequate sanitization or restriction of dangerous JDBC URL parameters. The H2 embedded database supports features like INIT scripts that execute SQL statements upon connection, which can include calls to Java methods and system commands.

Metabase's validation endpoints (POST /api/database, PUT /api/database/:id, and POST /api/setup/validate) process user-supplied connection strings and pass them directly to the H2 database engine, creating a direct path from untrusted input to code execution.

Attack Vector

The attack leverages Metabase's database connection validation functionality. An attacker can craft a malicious HTTP request to one of the vulnerable API endpoints containing a specially formatted H2 JDBC connection URL. The connection string includes parameters that instruct the H2 engine to execute arbitrary code during the connection initialization phase.

The vulnerability is particularly dangerous because:

  • No authentication is required to access the validation endpoint during setup
  • The H2 database engine runs with the same privileges as the Metabase process
  • Successful exploitation results in complete server compromise

Technical details regarding specific exploitation techniques can be found in the GitHub Security Advisory GHSA-p7w3-9m58-rq83.

Detection Methods for CVE-2023-37470

Indicators of Compromise

  • Suspicious HTTP POST requests to /api/database, /api/database/:id, or /api/setup/validate endpoints containing H2 connection strings
  • Unexpected child processes spawned by the Metabase Java process
  • Anomalous network connections originating from the Metabase server to external hosts
  • Log entries indicating H2 database connection attempts with unusual INIT parameters or JDBC URL configurations

Detection Strategies

  • Monitor web server access logs for requests to the vulnerable API endpoints containing jdbc:h2 connection strings
  • Implement network-level inspection to detect H2 JDBC URLs in HTTP request bodies targeting Metabase endpoints
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious process creation from the Metabase application
  • Review Metabase application logs for database connection validation attempts with H2 database types

Monitoring Recommendations

  • Enable detailed logging on Metabase instances and forward logs to a centralized SIEM
  • Configure alerts for any requests to database configuration endpoints from untrusted sources
  • Implement application-level monitoring for H2 database connection attempts
  • Monitor for unexpected system calls or process execution from the Metabase server

How to Mitigate CVE-2023-37470

Immediate Actions Required

  • Update Metabase to patched versions: 0.43.7.3, 0.44.7.3, 0.45.4.3, 0.46.6.4 (Open Source) or 1.43.7.3, 1.44.7.3, 1.45.4.3, 1.46.6.4 (Enterprise)
  • If using H2 as a file-based database, migrate to SQLite as recommended by the vendor
  • Implement network-level controls to restrict access to the vulnerable API endpoints
  • Review access logs for potential exploitation attempts prior to patching

Patch Information

Metabase has released security patches that completely remove the ability for users to add H2 databases to the platform. Organizations should upgrade to the latest patched versions immediately. Detailed patch information is available in the Metabase Security Advisory.

Workarounds

  • Block access to vulnerable endpoints (POST /api/database, PUT /api/database/:id, POST /api/setup/validate) at the network or reverse proxy level
  • Implement web application firewall (WAF) rules to filter requests containing H2 JDBC connection strings
  • Restrict network access to Metabase instances to trusted IP ranges only
  • Consider placing Metabase behind a VPN or zero-trust network architecture until patching is complete
bash
# Example nginx configuration to block vulnerable endpoints
location ~ ^/api/(database|setup/validate) {
    # Block POST and PUT requests to vulnerable endpoints
    if ($request_method ~* "(POST|PUT)") {
        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
  • TypeRCE

  • Vendor/TechMetabase

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2023-38646: Metabase RCE Vulnerability Explained

  • CVE-2026-27464: Metabase Information Disclosure Flaw

  • CVE-2026-22805: Metabase Information Disclosure Flaw

  • CVE-2021-41277: Metabase Path Traversal 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