github.com/dgraph-io/dgraph/v25
Affected
- introduced
0, fixed25.3.3(semver)
Fixed versions
25.3.3
Fix
- Fixed version
25.3.3go get github.com/dgraph-io/dgraph/[email protected]
Advisory
Also known as: CVE-2026-41492, GO-2026-5675
Dgraph: Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars
Summary
Dgraph v25.3.2 still exposes the process command line through the unauthenticated /debug/vars endpoint on Alpha. Because the admin token is commonly supplied via the --security "token=..." startup flag, an unauthenticated attacker can retrieve that token and replay it in the X-Dgraph-AuthToken header to access admin-only endpoints.
This is a variant of the previously fixed /debug/pprof/cmdline issue, but the current fix is incomplete because it blocks only /debug/pprof/cmdline and still serves http.DefaultServeMux, which includes expvar's /debug/vars handler.
Details
Alpha still exposes Go's default HTTP mux:
x/metrics.goexpvarConf = expvar.NewMap("dgraph_config")expvar package automatically registers /debug/varsexpvar publishes:cmdline = os.Argsmemstats = runtime.MemstatsAlpha's HTTP handler explicitly blocks only the old CVE path:
dgraph/cmd/alpha/run.goif r.URL.Path == "/debug/pprof/cmdline" and returns 404http.DefaultServeMux.ServeHTTP(w, r)Admin endpoints still trust the leaked token:
dgraph/cmd/alpha/admin.goX-Dgraph-AuthTokenworker.Config.AuthTokenPoC
GET /debug/vars HTTP/1.1
Host: target:8080
cmdline field.--security token=debug-vars-secret;
GET /admin/config/cache_mb HTTP/1.1
Host: target:8080
X-Dgraph-AuthToken: debug-vars-secret
This was reproduced against dgraph/dgraph:v25.3.2 in Docker.
Observed behavior:
/debug/vars leaked the configured tokenX-Dgraph-AuthToken successfully accessed /admin/config/cache_mb4096
It was verified that the old CVE path appears specifically patched in the same version:
/debug/pprof/cmdline returned 404 Not Found/debug/pprof/ remained reachableImpact
Unauthenticated attackers can obtain the Alpha admin token and gain unauthorized administrative access.
This enables privileged admin operations such as:
X-Dgraph-AuthTokenIn deployments where the Alpha HTTP port is reachable by untrusted parties, this is a practical authentication bypass to admin functionality.
Critical Basis: The source's own band: CRITICAL
0, fixed 25.3.3 (semver)25.3.3
25.3.3go get github.com/dgraph-io/dgraph/[email protected]0, last affected 24.1.8 (semver)None listed
No fixed version is listed.
0, last affected 1.2.8 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0