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.
Published: 2026-04-06
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a missing authorization check on Dgraph's restoreTenant mutation. An unauthenticated attacker can provide arbitrary backup source URLs—including local file paths—as well as credentials for cloud storage or Vault. Because the mutation runs without any authentication, the attacker can overwrite the entire database, read server‑side files, and trigger server‑side request forgery, thereby gaining full control of the database, accessing sensitive files, or executing arbitrary code on the host. The flaw is a missing authorization enforcement (CWE‑862) that permits privileged actions to be taken by anyone.

Affected Systems

Dgraph, an open‑source distributed GraphQL database, is affected. Versions prior to 25.3.1 lack the necessary authorization check on the restoreTenant endpoint. Users running any of these versions are vulnerable until they upgrade to the fixed release 25.3.1 or later.

Risk and Exploitability

The CVSS score is 10, indicating a critical severity. The EPSS score is not available, but the vulnerability allows exploitation over the network without authentication, making the attack vector essentially a public-facing API call to restoreTenant. While the vulnerability is not listed in the CISA KEV catalog, it provides a direct route to database compromise and potential server‑side code execution. An attacker can exploit it by sending a crafted GraphQL mutation with a malicious backup source URL, and no administrative credentials are required.

Generated by OpenCVE AI on April 6, 2026 at 19:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Dgraph to version 25.3.1 or later.
  • Restrict external access to the Dgraph admin endpoints or isolate the service behind a firewall.
  • Monitor logs for unexpected restoreTenant mutation activity.
  • Verify that authorization middleware is applied to all admin mutations before deployment.

Generated by OpenCVE AI on April 6, 2026 at 19:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-p5rh-vmhp-gvcw Dgraph: Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization
History

Wed, 22 Apr 2026 20:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:dgraph:dgraph:*:*:*:*:*:go:*:*

Tue, 07 Apr 2026 18:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 07 Apr 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Dgraph
Dgraph dgraph
Vendors & Products Dgraph
Dgraph dgraph

Mon, 06 Apr 2026 16:45:00 +0000

Type Values Removed Values Added
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.
Title Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-07T16:00:19.660Z

Reserved: 2026-03-31T19:38:31.617Z

Link: CVE-2026-34976

cve-icon Vulnrichment

Updated: 2026-04-07T15:47:03.276Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-06T17:17:11.370

Modified: 2026-04-22T19:51:26.423

Link: CVE-2026-34976

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-06T21:31:41Z

Weaknesses