CVE-2026-34976
Dgraph: Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/dgraph-io/dgraph/v25 | <= 25.3.0 | 25.3.1 |
| go | github.com/dgraph-io/dgraph/v24 | <= 24.0.5 | none recorded |
| go | github.com/dgraph-io/dgraph | <= 1.2.8 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Dgraph | Dgraph | through 25.3.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-p5rh-vmhp-gvcw
- https://github.com/advisories/GHSA-p5rh-vmhp-gvcw
- https://github.com/dgraph-io/dgraph/commit/b15c87e9353e36618bf8e0df3bd945c0ce7105ef
- https://github.com/dgraph-io/dgraph/releases/tag/v25.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-34976