Vulnerability DatabaseCVE-2026-142181

CVE-2026-142181: 
Wolfi vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Dgraph Zero HTTP interfaces (default port 6080) using network scanners such as Shodan or Censys, targeting instances running versions 25.4.0–25.5.1.
  2. Token extraction via /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>).
  3. Alternative extraction via /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.
  4. Parse the token: Extract the token value from the --security superflag string (e.g., parse token=mysecrettoken from the command-line output).
  5. Call protected administrative endpoints: Use the extracted token in the X-Dgraph-AuthToken HTTP header to invoke destructive endpoints, for example:
    • GET http://<zero-host>:6080/state — read full cluster topology
    • GET http://<zero-host>:6080/removeNode?id=<nodeId>&group=<groupId> — evict a node from the cluster
    • GET http://<zero-host>:6080/moveTablet?tablet=<predicate>&group=<groupId> — relocate data
    • GET http://<zero-host>:6080/assign?what=uids&num=<n> — exhaust UID space (VulnCheck Advisory, Dgraph zero/run.go)

Indicators of compromise

  • Network: Unexpected HTTP GET requests to 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.
  • Logs: Dgraph Zero HTTP access logs showing requests to /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.
  • Cluster State: Unexpected node removals, tablet migrations, or UID assignment spikes visible in /state output or Dgraph monitoring dashboards; cluster instability or data unavailability following unauthorized administrative calls.

Mitigation and workarounds

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).

Additional resources


Source: This report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-142181HIGH8.8
  • Wolfi logoWolfi
  • dgraph
NoNoDec 02, 2026
CVE-2026-141539MEDIUM4.8
  • Ruby logoRuby
  • ruby3.4-fluentd-kubernetes-daemonset-1.20
NoYesDec 01, 2026
CVE-2026-141538MEDIUM4.8
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-azureblob-1.20
NoYesDec 01, 2026
CVE-2026-141537LOW3.7
  • Ruby logoRuby
  • fluentd-kubernetes-daemonset-cloudwatch
NoYesDec 01, 2026
CVE-2026-142099LOW2.1
  • Rocky Linux logoRocky Linux
  • freerdp
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management