CVE-2023-31135: dgraph-io dgraph Inadequate Encryption Strength
Vulnerability summary
CVE-2023-31135 is a medium (CVSS 5.5) Inadequate Encryption Strength vulnerability in dgraph-io dgraph. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4.1% of scored vulnerabilities.
Timeline
- 17-05-2023PublishedVulnerability first disclosed.
- 22-01-2025Last modifiedVulnerability information updated.
Description
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`.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NDiffers
- OSV · GoEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
0.00 pp
From 0.15% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Dgraph1 product
- dgraph< 23.0.0
Dgraph-io1 product
- dgraph< 23.0.0
Github.com/dgraph-io1 product
- dgraph< 23.0.0
3 vendors · 3 products
References
6 links- github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47X Refsource CONFIRMWEBVendor Advisory
- github.com/dgraph-io/dgraphPACKAGE