
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-142181 is an information disclosure vulnerability in Dgraph affecting versions 25.4.0 through 25.5.1 that allows unauthenticated remote attackers to read the Zero admin token via unsanitized debug endpoints. By querying /debug/pprof/cmdline or /debug/vars, an attacker can extract the --security token passed on the command line and subsequently call protected administrative endpoints to disrupt or reconfigure the cluster. It carries a CVSS v3.1 base score of 8.6 (High) and a CVSS v4.0 base score of 8.8 (High) (VulnCheck Advisory, Feedly).
The root cause is classified as CWE-215 (Insertion of Sensitive Information Into Debugging Code): Dgraph Zero passes the --security token as a command-line argument, which is then exposed verbatim by Go's built-in net/http/pprof handler at /debug/pprof/cmdline and by the expvar handler at /debug/vars (which publishes os.Args under the cmdline key by default). Neither endpoint was sanitized to redact sensitive flags in the affected versions. The fix, visible in x/server.go at v25.5.1, introduces a SanitizedDefaultServeMux() that blocks /debug/pprof/cmdline entirely and replaces /debug/vars with a filteredExpvarHandler that omits the cmdline key (Dgraph server.go, Dgraph zero/run.go).
An unauthenticated attacker with network access to the Dgraph Zero HTTP port (default 6080) can retrieve the admin token and use it in the X-Dgraph-AuthToken header to invoke protected control-plane endpoints: /removeNode (remove cluster nodes), /moveTablet (relocate data predicates between groups), /assign (allocate UIDs/timestamps), and /state (read full cluster state). This results in low confidentiality impact (token and cluster state disclosure), low integrity impact (unauthorized cluster reconfiguration), and high availability impact (node removal or tablet disruption can render the cluster inoperable) (VulnCheck Advisory, Feedly).
No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at the time of disclosure. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. However, exploitation requires no authentication, no user interaction, and no special privileges — only network access to the Zero HTTP port — making it trivially automatable if the port is internet-exposed (VulnCheck Advisory, Feedly).
/debug/pprof/cmdline: Send an unauthenticated HTTP GET request to http://<zero-host>:6080/debug/pprof/cmdline. The response returns the full process command line as null-delimited arguments, including the --security flag value containing the admin token (e.g., token=<secret>)./debug/vars: Send an unauthenticated HTTP GET to http://<zero-host>:6080/debug/vars. The JSON response includes a cmdline array with os.Args, again exposing the --security token=<secret> argument.--security superflag string (e.g., parse token=mysecrettoken from the command-line output).X-Dgraph-AuthToken HTTP header to invoke destructive endpoints, for example:GET http://<zero-host>:6080/state — read full cluster topologyGET http://<zero-host>:6080/removeNode?id=<nodeId>&group=<groupId> — evict a node from the clusterGET http://<zero-host>:6080/moveTablet?tablet=<predicate>&group=<groupId> — relocate dataGET http://<zero-host>:6080/assign?what=uids&num=<n> — exhaust UID space
(VulnCheck Advisory, Dgraph zero/run.go)http://<zero-host>:6080/debug/pprof/cmdline or http://<zero-host>:6080/debug/vars from external or untrusted IP addresses; subsequent requests to /removeNode, /moveTablet, /assign, or /state bearing an X-Dgraph-AuthToken header from unfamiliar source IPs./debug/pprof/cmdline or /debug/vars from non-loopback, non-whitelisted addresses; audit log entries for /removeNode or /moveTablet operations not initiated by known administrators./state output or Dgraph monitoring dashboards; cluster instability or data unavailability following unauthorized administrative calls.No vendor patch version beyond 25.5.1 is explicitly cited in the advisory; the fix is present in the v25.5.1 codebase via the SanitizedDefaultServeMux() function that blocks /debug/pprof/cmdline and filters cmdline from /debug/vars. As immediate workarounds: (1) restrict network access to the Dgraph Zero HTTP port (default 6080) using firewall rules so only trusted administrators and cluster members can reach it; (2) block or disable access to /debug/pprof and /debug/vars at the network or reverse-proxy layer; (3) rotate the --security token immediately if the Zero HTTP port was previously reachable from untrusted networks, as any exposed token must be considered compromised; (4) avoid passing secrets on the command line where possible, and review Zero logs for unexpected administrative endpoint calls (VulnCheck Advisory, Dgraph server.go).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."