{"id":"CVE-2026-34976","published":"2026-04-06T16:12:43Z","modified":"2026-04-07T16:00:19Z","title":"Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization","vendor":"dgraph-io","product":"dgraph","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02066,"percentile":0.81855,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/dgraph-io/dgraph/security/advisories/GHSA-p5rh-vmhp-gvcw","tags":["x_refsource_CONFIRM"]}],"priority":{"score":28.4,"factors":[{"name":"EPSS percentile","points":16.37},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-34976","name":"Dgraph <=v25.3.0 - Admin Mutation Missing Authorization","severity":"critical","path":"http/cves/2026/CVE-2026-34976.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-34976.yaml"}],"provenance":"source"},"vendorSlug":"dgraph-io","affectedVersions":[{"vendor":"dgraph-io","product":"dgraph","versions":["< 25.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-07T15:46:54.961660Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/dgraph-io/dgraph/v25","vulnerableRanges":["<25.3.1"],"patched":["25.3.1"],"from":["GHSA-p5rh-vmhp-gvcw","GO-2026-5529"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/dgraph-io/dgraph/v24","vulnerableRanges":["<=24.0.5"],"patched":[],"from":["GHSA-p5rh-vmhp-gvcw"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/dgraph-io/dgraph","vulnerableRanges":["<=1.2.8","all versions"],"patched":[],"from":["GHSA-p5rh-vmhp-gvcw","GO-2026-5529"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/hypermodeinc/dgraph/v24","vulnerableRanges":[">=24.0.0, <24.1.6"],"patched":["24.1.6"],"from":["GO-2026-5529"],"provenance":"source"}],"summary":{"text":"The Dgraph GraphQL database (dgraph-io/dgraph) has a missing authorization flaw in its admin restoreTenant mutation, which is absent from the authorization middleware configuration in admin.go and so runs without any authentication. An unauthenticated remote attacker can invoke this mutation over the network with no user interaction to overwrite the entire database, read server-side files via file:// backup URLs, and perform server-side request forgery using attacker-supplied backup sources and credential or key file paths.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:06Z"},"euvd":{"id":"EUVD-2026-19360","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-34976","published":"2026-04-06","fixed":"25.3.1","kev":false},{"cve":"CVE-2026-40173","published":"2026-04-15","fixed":"25.3.2","kev":false,"link":{"from":"CVE-2026-34976","to":"CVE-2026-40173","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/dgraph-io/dgraph/v25","fromFixed":"25.3.1","toFixed":"25.3.2","daysApart":9}]}},{"cve":"CVE-2026-41327","published":"2026-04-24","fixed":"25.3.3","kev":false,"link":{"from":"CVE-2026-34976","to":"CVE-2026-41327","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hypermodeinc/dgraph/v24","fromFixed":"24.1.6","toFixed":"24.1.8","daysApart":18}]}},{"cve":"CVE-2026-41328","published":"2026-04-24","fixed":"25.3.3","kev":false}],"package":"Go:github.com/dgraph-io/dgraph/v25"}}