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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.07%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-02T20:44:36.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-p5rh-vmhp-gvcw, GO-2026-5529
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dgraph-io dgraph: < 25.3.1
- github.com/dgraph-io/dgraph/v25 (Go): before 25.3.1
- github.com/dgraph-io/dgraph/v24 (Go): up to 24.0.5
- github.com/dgraph-io/dgraph (Go): up to 1.2.8; all versions
- github.com/hypermodeinc/dgraph/v24 (Go): from 24.0.0 before 24.1.6
- dgraph dgraph: up to 25.3.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/dgraph-io/dgraph/security/advisories/GHSA-p5rh-vmhp-gvcw> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34976> (advisory)
- <https://github.com/dgraph-io/dgraph/commit/b15c87e9353e36618bf8e0df3bd945c0ce7105ef> (fix, web)
- <https://github.com/dgraph-io/dgraph> (package)
- <https://github.com/dgraph-io/dgraph/releases/tag/v25.3.1> (web)

## Sources

- CVE List: [CVE-2026-34976](https://www.cve.org/CVERecord?id=CVE-2026-34976), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-p5rh-vmhp-gvcw](https://github.com/advisories/GHSA-p5rh-vmhp-gvcw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5529](https://pkg.go.dev/vuln/GO-2026-5529), CC-BY-4.0, modified 2026-08-11
- NVD: [CVE-2026-34976](https://nvd.nist.gov/vuln/detail/CVE-2026-34976), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-34976 · Whole record: https://cve.day/CVE-2026-34976.json · Rebuilt by cve.day 2026-11-25T22:59:18.030Z
