Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/dgraph-io/dgraph/v25
  4. ›
  5. CVE-2026-34976

CVE-2026-34976: Dgraph: Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization

April 2, 2026 (updated April 6, 2026)

The restoreTenant admin mutation is missing from the authorization middleware config (admin.go:499-522), 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.

References

  • github.com/advisories/GHSA-p5rh-vmhp-gvcw
  • github.com/dgraph-io/dgraph
  • github.com/dgraph-io/dgraph/commit/b15c87e9353e36618bf8e0df3bd945c0ce7105ef
  • github.com/dgraph-io/dgraph/releases/tag/v25.3.1
  • github.com/dgraph-io/dgraph/security/advisories/GHSA-p5rh-vmhp-gvcw
  • nvd.nist.gov/vuln/detail/CVE-2026-34976

Code Behaviors & Features

Detect and mitigate CVE-2026-34976 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 25.3.1

Fixed versions

  • 25.3.1

Solution

Upgrade to version 25.3.1 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

go/github.com/dgraph-io/dgraph/v25/CVE-2026-34976.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:38 +0000.