Description
Dgraph 25.4.0 through 25.5.1 contains an information disclosure vulnerability that allows unauthenticated remote attackers to read the Zero admin token by querying unsanitized /debug/pprof/cmdline and /debug/vars handlers. Attackers can extract the --security token from the exposed command line and call protected endpoints such as /removeNode, /moveTablet, /assign, and /state to disrupt or reconfigure the cluster.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dgraph-io | dgraph | 25.4.0 ≤25.5.1 | — |
References
- https://github.com/dgraph-io/dgraph/blob/v25.5.1/dgraph/cmd/zero/run.go#L320-L330
- https://github.com/dgraph-io/dgraph/blob/v25.5.1/x/server.go#L98-L140
- https://github.com/dgraph-io/dgraph/blob/v25.5.1/dgraph/cmd/alpha/run.go#L609-L611
- https://www.vulncheck.com/advisories/dgraph-25.4.0-through-25.5.1-zero-admin-token-disclosure-via-debug-endpoints