Dgraph Audit Log Encryption nonce reuse
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-326.
Summary
Dgraph is an open source distributed GraphQL database. Existing Dgraph audit logs are vulnerable to brute force attacks due to nonce collisions. The first 12 bytes come from a baseIv which is initialized when an audit log is created. The last 4 bytes come from the length of the log line being encrypted. This is problematic because two log lines will often have the same length, so due to these collisions we are reusing the same nonce many times. All audit logs generated by versions of Dgraph <v23.0.0 are affected. Attackers must have access to the system the logs are stored on. Dgraph users should upgrade to v23.0.0. Users unable to upgrade should store existing audit logs in a secure location and for extra security, encrypt using an external tool like `gpg`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dgraph-io | dgraph | before 23.0.0 | 23.0.0 | Patch available | CNA |
| — | github.com/dgraph-io/dgraph (Go) | before 23.0.0 | 23.0.0 | Patch available | GHSA-92wq-q9pq-gw47 |
- dgraph Vendordgraph-io Affected before 23.0.0 Fixed in 23.0.0 Patch available CNA
- github.com/dgraph-io/dgraph (Go) Vendor— Affected before 23.0.0 Fixed in 23.0.0 Patch available GHSA-92wq-q9pq-gw47
Remediation
- Fix · CNA dgraph (dgraph-io) Fixed in 23.0.0
- Fix · GHSA-92wq-q9pq-gw47 github.com/dgraph-io/dgraph (Go) Fixed in 23.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-31135
- 2026-10-03 Alias added: GHSA-92wq-q9pq-gw47
References
Advisory 2
More dgraph-io Dgraph vulnerabilities
- TI-2026-30079 Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars in Dgraph CVSS 3.1CRITICAL 9.8
- TI-2026-28987 Dgraph: Unauthenticated pprof endpoint leaks admin auth token CVSS 3.1CRITICAL 9.4
- TI-2026-27198 Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization CVSS 3.1CRITICAL 10.0
- TI-2026-29929 Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field CVSS 3.1CRITICAL 9.1
- TI-2026-29928 Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition Field CVSS 3.1CRITICAL 9.1
Sources
- CVE-2023-31135 · CVE Program
- CVE-2023-31135 · NVD
- FIRST EPSS
- GHSA-92wq-q9pq-gw47 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences