Skip to main content
← All vulnerabilities
CVE-2026-34976GHSA-P5RH-VMHP-GVCWGO-2026-5529

Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 25.3.1, 24.1.6
1 Nuclei template
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

Dgraph is an open source distributed GraphQL database. Prior to 25.3.1, the restoreTenant admin mutation is missing from the authorization middleware config (admin.go), making it completely unauthenticated. Unlike the similar restore mutation which requires Guardian-of-Galaxy authentication, restoreTenant executes with zero middleware. This mutation accepts attacker-controlled backup source URLs (including file:// for local filesystem access), S3/MinIO credentials, encryption key file paths, and Vault credential file paths. An unauthenticated attacker can overwrite the entire database, read server-side files, and perform SSRF. This vulnerability is fixed in 25.3.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • dgraph-io dgraph

    fixed in 25.3.1

  • github.com/dgraph-io/dgraph/v25Go

    fixed in 25.3.1

  • github.com/dgraph-io/dgraph/v24Go

    through 24.0.5

  • github.com/dgraph-io/dgraphGo

    through 1.2.8

  • github.com/dgraph-io/dgraphGo

    All versions

  • github.com/hypermodeinc/dgraph/v24Go

    From 24.0.0 · fixed in 24.1.6

References 2

GitHub · dgraph-io/dgraph

GitHub · projectdiscovery/nuclei-templates