Skip to content

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

CriticalCVSS 10.0 EPSS 2.1% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

Description

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.

Upgrade path

4 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
dgraph-io dgraph(Go) < 25.3.1; <= 1.2.8; <= 24.0.5; <= 25.3.0 +1 more 25.3.1 Partially fixed
dgraph <= 25.3.0 after 25.3.0 Fixed
hypermodeinc github.com/hypermodeinc/dgraph/v24(Go) >= 24.0.0, < 24.1.6 24.1.6 Fixed
dgraph-io dgraph = < 25.3.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
dgraph-io dgraph = < 25.3.1 No fix listed
dgraph-io dgraph(Go) < 25.3.1 25.3.1
dgraph-io dgraph(Go) <= 24.0.5 No fix listed
dgraph-io dgraph(Go) <= 1.2.8 No fix listed
dgraph-io dgraph(Go) All versions No fix listed
hypermodeinc github.com/hypermodeinc/dgraph/v24(Go) >= 24.0.0, < 24.1.6 24.1.6
dgraph-io dgraph(Go) <= 25.3.0 No fix listed
dgraph <= 25.3.0 No fix listed

References