Dgraph
Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 25.3.4
Fixed in 25.3.4
Mitigation
Upgrade dgraph to 25.3.4 or later.
References
- Vendor advisory github.com/dgraph-io/dgraph/security/advisorie…
- Patch github.com/dgraph-io/dgraph/commit/cee702c93f1…
- Release notes github.com/dgraph-io/dgraph/releases/tag/v25.3…
Timeline
Days relative to CVE publicationFirst public PoC 71 days after publication; not in CISA KEV. First PoC: isaca0315/CVE-2026-44840-poc (created 17 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| isaca0315/CVE-2026-44840-poc | 17 Sep 2026 +71 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /graphql
- Body markers
"query""variables""p""p":"password-incorrecta""p":"Sup3rS3cret!"inapplication/json- Ports
- 8180, 8280
- Seen in
- 1 repo: isaca0315/CVE-2026-44840-poc
- Evidence
- isaca0315/CVE-2026-44840-poc/REDTEAM.md:104 isaca0315/CVE-2026-44840-poc/REDTEAM.md:112 isaca0315/CVE-2026-44840-poc/REDTEAM.md:129 isaca0315/CVE-2026-44840-poc/REDTEAM.md:156 isaca0315/CVE-2026-44840-poc/REDTEAM.md:172 isaca0315/CVE-2026-44840-poc/REDTEAM.md:180
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/graphql(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8180,8280] (msg:"GG PoC-Monitor CVE-2026-44840 dgraph-io dgraph exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/graphql"; http.request_body; content:"|22|query|22|"; http.request_body; content:"|22|variables|22|"; http.request_body; content:"|22|p|22|"; http.request_body; content:"|22|p|22|:|22|password-incorrecta|22|"; http.request_body; content:"|22|p|22|:|22|Sup3rS3cret!|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-44840; classtype:web-application-attack; sid:9229577; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: dgraph-io dgraph exploit attempt (CVE-2026-44840)
id: gg-pocmon-cve-2026-44840-9229577
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44840. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44840
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/graphql'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44840