← Lab /Security & privacy

Metabase SQL injection (CVE-2026-72898) exploited in the wild

A zero-day SQL injection vulnerability in Metabase (CVE-2026-72898) has been actively exploited in the wild.

Security & privacy Wiz Research 10 Aug 2026 Disclosure Real-world evidence

Published as “Inside the Metabase SQLi: Exploited in the Wild”

Why it matters

Operators of self-hosted or cloud Metabase instances must apply the patch immediately to stop remote SQL injection attacks.

Summary

Wiz Research reverse-engineered a zero-day SQL injection in Metabase versions 1.58+ by comparing vulnerable and patched JARs with AI assistance. The flaw stems from an undocumented 'user-id' field that survives a Clojure map merge and is later passed to HoneySQL as a raw SQL fragment, enabling arbitrary blind SQL injection via the /api/session/reset_password endpoint. Public proof-of-concept exploits have been observed in the wild, and the write-up provides detection guidance and automated static-analysis rules to hunt for variant code paths.

What they found 2

  1. The vulnerability relies on an undocumented 'user-id' parameter that is not validated before being used in a SQL query

    “The patch validates user-id as a positive integer before querying. However, user-id is not a documented parameter of /api/session/reset_password, which only expects a token and a password.”

  2. Clojure's merge function allows attacker-supplied keys to persist, facilitating the injection

    “Clojure's merge function combines two maps, with the second map's values overwriting the first's. Critically, it does not strip extra keys from the first map, but rather they simply pass through.”

Caveats 2

  • Full PoC is withheld to avoid enabling exploitation
  • Patch details were not publicly released in the GitHub repository

What’s new here 4

  • AI-assisted reverse engineering of the vulnerability using diff of vulnerable and patched JARs
  • Public proof-of-concept exploit observed in the wild for Metabase Cloud
  • Detailed explanation of how Clojure's merge and HoneySQL's :raw keyword enable the injection
  • Automated static-analysis rules to locate unpatched variant patterns in the codebase

In the news