Unauthenticated Access in Dgraph's RestoreTenant Mutation
CVE-2026-34976
What is CVE-2026-34976?
Dgraph, an open-source distributed GraphQL database, has a significant vulnerability related to its restoreTenant admin mutation. Prior to version 25.3.1, this mutation lacked proper authorization checks, allowing unauthenticated attackers to exploit it. Unlike the similar restore mutation, which requires user authentication, restoreTenant operates with no middleware, exposing critical functions. Attackers can manipulate backup source URLs, which may include local files using 'file://', and leverage S3/MinIO credentials, encryption key file paths, and Vault credential file paths. This oversight gives malicious users the ability to overwrite entire databases, read sensitive server-side files, and conduct server-side request forgery (SSRF) attacks. The vulnerability has been addressed in version 25.3.1, highlighting the importance of rigorous security practices in database management.
Affected Version(s)
dgraph < 25.3.1
