Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconNetwork scan for port 8080
-
DeliveryUnauthenticated GET /debug/vars
-
ExploitParse JSON cmdline field
-
InstallExtract --security token value
-
C2Replay token in X-Dgraph-AuthToken header
-
ExecuteAccess admin endpoints
-
ImpactExecute privileged operations
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated exploitation against default configurations of Dgraph Alpha v25.3.2 and earlier when the admin token is configured via the --security token= command-line flag. The /debug/vars endpoint is exposed by default through Go's http.DefaultServeMux without authentication checks. Attack success does NOT require non-default configurations-the vulnerable expvar handler registers automatically when the metrics package is imported. Limiting factors: (1) The Alpha HTTP port (typically 8080) must be network-reachable by the attacker-deployments with Alpha nodes isolated on internal networks are protected by network segmentation. (2) Admin token must be passed via command-line flag rather than environment variable or config file, though command-line configuration is the documented and commonly deployed method, especially in Docker containers. (3) The incomplete previous fix specifically blocks only /debug/pprof/cmdline, leaving /debug/vars exploitable-this is default behavior in v25.3.2 and earlier. No user interaction, special headers, or authenticated session required. |
| Impact | Real-world risk is CRITICAL for internet-facing Dgraph deployments. The CVSS 9.8 score accurately reflects exploitability: network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), with full impact to confidentiality, integrity, and availability (C:H/I:H/A:H). Attack complexity is genuinely low-the proof-of-concept requires only two HTTP requests (GET /debug/vars, then replay token to /admin endpoint). No EPSS or CISA KEV data provided, but the detailed public PoC in the GitHub advisory significantly lowers exploitation barriers. The vulnerability is a practical authentication bypass rather than theoretical-it grants complete admin access in default configurations where debug endpoints remain enabled and the token is passed via command-line (a common deployment pattern, especially in Docker containers per the tags). Mitigating factors: requires the Alpha HTTP port to be network-reachable by attackers, and depends on administrators using the --security token= flag rather than environment variables or config files. However, command-line token configuration is documented in official examples and widely deployed. The incomplete fix pattern (blocking one path while leaving related vectors exposed) suggests potential for additional variants. Priority should be IMMEDIATE for any Dgraph deployment with network-exposed Alpha ports running versions prior to v25.3.3. |
| Exploit ScenarioDerived | An attacker scans for internet-exposed Dgraph Alpha instances on port 8080 and sends an unauthenticated HTTP GET request to /debug/vars. The server responds with JSON containing the cmdline field showing startup arguments including --security token=production-admin-secret. The attacker extracts the token value and crafts a second request to /admin/config/cache_mb with the X-Dgraph-AuthToken: production-admin-secret header. Dgraph validates this header against its configured token, grants admin access, and returns sensitive configuration data. The attacker now has full administrative control to read schemas, modify configurations, or execute privileged operations. Proof-of-concept code demonstrating this exact sequence exists in the public GitHub advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 24, 2026
Unauthenticated attackers can steal admin tokens from Dgraph Alpha v25.3.2 and earlier via the exposed /debug/vars endpoint, enabling complete authentication bypass to administrative functions. The vulnerability exists because Dgraph incompletely fixed a previous cmdline exposure issue-blocking only /debug/pprof/cmdline while still serving Go's expvar handler at /debug/vars, which publishes the full command-line arguments including --security token= flags. Attackers can retrieve the token remotely without authentication (CVSS AV:N/PR:N) and replay it in X-Dgraph-AuthToken headers to access admin-only endpoints. Vendor patch released in v25.3.3 per GitHub advisory GHSA-vvf7-6rmr-m29q. No public exploit identified at time of analysis, but detailed proof-of-concept steps are published in the advisory.
RemediationAI
Upgrade immediately to Dgraph v25.3.3 released at https://github.com/dgraph-io/dgraph/releases/tag/v25.3.3, which addresses the /debug/vars exposure. For deployments that cannot immediately upgrade, implement these compensating controls in order of effectiveness: (1) Configure admin tokens via environment variables or configuration files instead of command-line flags to prevent leakage through cmdline exposure-note this requires application restart and deployment automation changes. (2) Block external access to all /debug/* paths at the network perimeter (firewall, reverse proxy, ingress controller) using path-based filtering rules-this prevents token leakage but does not fix the underlying exposure and may impact legitimate debugging workflows. (3) Restrict Alpha HTTP port (default 8080) to trusted internal networks only via firewall rules-this reduces attack surface but breaks any legitimate external API access. (4) Deploy Alpha nodes behind authentication-enforcing reverse proxies that strip /debug/* requests before reaching Dgraph-adds architectural complexity and latency. Each workaround trades operational convenience or functionality for security. Only the vendor patch (v25.3.3) comprehensively resolves the issue. Verify remediation by confirming GET /debug/vars returns 404 or 403 after upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 5 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dgraph is a distributed graph database written in Go. The vulnerability stems from incomplete remediation of a previous information disclosure issue. Dgraph's Alpha component (the data-serving node) imports Go's expvar package for metrics collection, which automatically registers the /debug/vars HTTP handler on the default ServeMux. This handler exposes runtime diagnostics including os.Args (command-line arguments) in JSON format. While developers blocked the previously exploited /debug/pprof/cmdline path with a hardcoded 404 check, they continued serving http.DefaultServeMux for all other paths, leaving expvar's /debug/vars endpoint exposed. The root cause falls under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) because the application leaks authentication credentials through a debug interface. Affected CPE identifiers include pkg:go/github.com_dgraph-io_dgraph across v24.x and v25.x branches. The authentication mechanism in dgraph/cmd/alpha/admin.go validates admin requests by comparing the X-Dgraph-AuthToken header against worker.Config.AuthToken, which is typically set via the --security token= startup flag-the same flag exposed in /debug/vars.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/dgraph-io/dgraph).
CVSS VectorVendor: https://github.com/dgraph-io/dgraph
Lifecycle Timeline
3DescriptionCVE.org
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.go- imports
expvar - initializes
Conf = expvar.NewMap("dgraph_config") - Go's
expvarpackage automatically registers/debug/vars expvarpublishes:cmdline = os.Argsmemstats = runtime.Memstats
Alpha's HTTP handler explicitly blocks only the old CVE path:
dgraph/cmd/alpha/run.go- checks
if r.URL.Path == "/debug/pprof/cmdline"and returns404 - otherwise falls through to
http.DefaultServeMux.ServeHTTP(w, r)
Admin endpoints still trust the leaked token:
dgraph/cmd/alpha/admin.go- reads
X-Dgraph-AuthToken - compares it to
worker.Config.AuthToken
PoC
- Send an unauthenticated request to Alpha:
GET /debug/vars HTTP/1.1
Host: target:8080- Parse the JSON response and read the
cmdlinefield. - Extract the admin token from the startup arguments, for example:
--security token=debug-vars-secret;- Replay the token to an admin-only endpoint:
GET /admin/config/cache_mb HTTP/1.1
Host: target:8080
X-Dgraph-AuthToken: debug-vars-secret- The request is accepted as an authorized admin request.
This was reproduced against dgraph/dgraph:v25.3.2 in Docker.
Observed behavior:
- unauthenticated
/debug/varsleaked the configured token - replaying the leaked token in
X-Dgraph-AuthTokensuccessfully accessed/admin/config/cache_mb - response body was:
4096It was verified that the old CVE path appears specifically patched in the same version:
/debug/pprof/cmdlinereturned404 Not Found/debug/pprof/remained reachable
Impact
Unauthenticated attackers can obtain the Alpha admin token and gain unauthorized administrative access.
This enables privileged admin operations such as:
- reading privileged admin configuration
- mutating admin configuration
- performing operational control actions gated by
X-Dgraph-AuthToken
In deployments where the Alpha HTTP port is reachable by untrusted parties, this is a practical authentication bypass to admin functionality.
Executive ViewAI
Dgraph Alpha versions 25.3.2 and earlier expose administrative authentication tokens through an unauthenticated endpoint, allowing remote attackers to bypass all authentication controls and gain complete administrative access to the database. Organizations running affected Dgraph deployments face immediate risk of unauthorized data access, modification, and system compromise without authentication barriers.
Vendor-released patch: v25.3.3. If patch deployment is delayed: (1) Restrict network access to /debug/* endpoints at firewall/WAF layer to internal networks only; (2) Monitor HTTP access logs for GET requests to /debug/vars from external sources; (3) Implement rate-limiting on /debug/ paths; (4) Immediately rotate administrative tokens and monitor for unauthorized token replay attempts in authentication logs.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Same weakness CWE-200 – Information Exposure
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-25599
GHSA-vvf7-6rmr-m29q
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB