CVE-2026-44840 Details
Description
Dgraph is an open source distributed GraphQL database. Prior to version 25.3.4, the `checkUserPassword` GraphQL query in Dgraph is vulnerable to DQL (Dgraph Query Language) injection. User-supplied password values are interpolated directly into a DQL `checkpwd()` query via `fmt.Sprintf` without any escaping or parameterization. An attacker can inject a password containing a double-quote character to break out of the DQL string literal and append arbitrary DQL query blocks. Version 25.3.4 patches the issue.
A DQL injection vulnerability has been identified in the Dgraph GraphQL database, affecting versions through 25.3.3. The issue arises in the checkUserPassword query, where user-provided password values are directly inserted into a DQL checkpwd() query using fmt.Sprintf, without proper escaping or parameterization. This flaw allows attackers to inject passwords containing double-quote characters to escape the DQL string literal and append arbitrary DQL query blocks. The vulnerability exists in the GraphQL-to-DQL query rewriting layer, specifically in query_rewriter.go, where the checkpwd() function is constructed with unsanitized input. Exploitation can lead to unauthorized data enumeration, schema discovery, resource exhaustion, and potential data disclosure, depending on the Dgraph configuration.
Users can upgrade to Dgraph version 25.3.4, which patches this vulnerability by properly escaping and parameterizing password values in the checkUserPassword query.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 8, 2026CISA-ADP
Assessed Jul 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/dgraph-io/dgraph/security/advisories/GHSA-q2m9-6jp9-c6mc | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/dgraph-io/dgraph/commit/cee702c93f141eeb0c96a81f70830ec9e459efac | [email protected] | Source CodeVendor |
| https://github.com/dgraph-io/dgraph/releases/tag/v25.3.4 | [email protected] | Release NotesVendor |
| https://github.com/dgraph-io/dgraph/security/advisories/GHSA-q2m9-6jp9-c6mc | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-943 | Improper Neutralization of Special Elements in Data Query Logic | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Dgraph | <= 25.3.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |
Volerion