Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/dgraph-io/dgraph/v24
  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. Learn more about Dependency Scanning →

Affected versions

All versions up to 24.0.5

Solution

Unfortunately, there is no solution available yet.

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/v24/CVE-2026-34976.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:51 +0000.