Dgraph is an open source distributed GraphQL database. Versions 25.3.1 and prior contain an unauthenticated credential disclosure vulnerability where the /debug/pprof/cmdline endpoint is registered on the default mux and reachable without authentication, exposing the full process command line including the admin token configured via the --security "token=..." startup flag. An attacker can retrieve the leaked token and reuse it in the X-Dgraph-AuthToken header to gain unauthorized access to admin-only endpoints such as /admin/config/cache_mb, bypassing the adminAuthHandler token validation. This enables unauthorized privileged administrative access including configuration changes and operational control actions in any deployment where the Alpha HTTP port is reachable by untrusted parties. This issue has been fixed in version 25.3.2.
The /debug/pprof/cmdline endpoint is registered on the default HTTP mux and is accessible without any authentication. It contains the full command line of the process, including the administrative token passed via the --security "token=..." startup flag. An attacker reads this token and passes it in the X-Dgraph-AuthToken header, thereby bypassing the verification performed by adminAuthHandler. This grants access to protected administrative endpoints, such as /admin/config/cache_mb, enabling configuration changes and administrative operations.
An attacker with network access to the Alpha HTTP port can obtain full, unauthorized administrative privileges, including the ability to modify configuration and perform management operations on the database.
Dgraph should be updated to version 25.3.2, where the issue has been fixed. Until the update is applied, it is recommended to restrict network access to the Alpha HTTP port only to trusted hosts (e.g., through firewall or network rules) to minimize the risk of exposure.
Dgraph in versions 25.3.1 and earlier, in all deployments where the Alpha HTTP port is accessible to untrusted parties.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:LDgraph
APPDgraph< 25.3.2
Related vulnerabilities
Dgraph — wstrzyknięcie zapytania DQL umożliwia nieautoryzowany odczyt danych
DQL injection w Dgraph — nieuwierzytelniony pełny odczyt bazy danych
Dgraph: ujawnienie tokenu admina przez endpoint /debug/vars bez uwierzytelnienia
Dgraph: nieuwierzytelniony dostęp do mutacji restoreTenant (SSRF, RCE danych)
Dgraph jest otwartym rozproszoną bazą danych GraphQL. Istniejące logi audytu Dgraph są podatne na ataki brute ...