/

CVE-2026-72898

Severity:

CRITICAL RISK

(10.0)

SQL Injection (CWE-89) in Metabase Password Reset API

CVE-2026-72898

Analyzed

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Unauthorized administrative access and database compromise

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Metabase contains a critical SQL injection vulnerability in the /reset_password database endpoint. A remote, unauthenticated attacker may inject arbitrary SQL and potentially gain administrator access to the connected Metabase instance.

Affected context

The vulnerability occurs in Metabase deployments that expose the affected password-reset database endpoint and allow attacker-controlled input to reach a database query without adequate parameterization. Because the endpoint is described as remotely reachable without authentication, internet-exposed or otherwise accessible instances may face elevated risk.

Exploit preconditions

  • Attack surface: The Metabase /reset_password database endpoint
  • Required access: Network reachability to the endpoint; authentication may not be required
  • Trigger point: Processing attacker-controlled input as part of a password-reset database operation
  • Why exploitation is possible: Input is incorporated into SQL processing without sufficient separation between data and query structure

Why this happens

The underlying bug is an SQL injection flaw, mapped to CWE-89. The affected code path appears to construct or execute database queries using externally controlled values without consistently applying parameterized queries, safe query APIs, or equivalent enforcement of data-only interpretation. As a result, database input can influence query logic rather than being treated solely as a value.

Potential impact

  • An attacker may read, modify, or delete data in the connected database
  • An attacker could bypass intended password-reset controls
  • An attacker may obtain administrator access to the Metabase instance
  • Metabase configuration, dashboards, credentials, or connected-data metadata could be exposed
  • The connected database and dependent systems may be disrupted or compromised

General mitigation guidance

Mitigation generally focuses on ensuring that all database operations treat external input strictly as data.

Common defensive patterns include:

  • Using parameterized queries, prepared statements, or safe query-builder APIs
  • Avoiding string concatenation or interpolation when constructing SQL
  • Applying allowlists and strict type validation to endpoint parameters
  • Separating password-reset authorization logic from database query construction
  • Limiting database accounts to the minimum required permissions
  • Restricting network access to administrative and password-reset endpoints where practical
  • Preventing sensitive credentials and administrative tokens from being exposed through query results or logs

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis rules identifying SQL string concatenation or interpolation with request-derived values
  • Code review checks for database calls that do not use parameter binding
  • Tests that verify special-character input remains data and cannot alter query behavior
  • Web-application monitoring for unusual requests to password-reset endpoints and unexpected database errors
  • Database audit logging for anomalous queries, privilege changes, or access to sensitive tables
  • Policy enforcement requiring approved parameterized database-access libraries

Automated code-review and application-security tools may help identify unsafe query-construction patterns before deployment.

Sources

SourceLink
github.comgithub.com/metabase/metabase/security/advisories/GHSA-vwf4-m7j8-wcjf
raw.githubusercontent.comraw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-222-01.json
cve.orgcve.org/CVERecord?id=CVE-2026-72898
metabase.commetabase.com/blog/security-update
cisa.govcisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-72898

Frequently asked

questions

Yes. The described attack surface is a remotely reachable Metabase database endpoint, and exploitation may not require prior authentication.

The attacker generally needs network access to the affected endpoint. The vulnerability description indicates that valid Metabase credentials may not be required.

The safest pattern is to ensure every database operation uses parameterized queries or a trusted query API, combined with strict input validation and least-privilege database permissions.

Use secure database-access abstractions, prohibit dynamic SQL built from request values, test security-sensitive endpoints, restrict endpoint exposure, and monitor database activity for anomalous behavior.

Find out what's already
exploitable in your codebase.