{"id":"CVE-2023-31135","published":"2023-05-17T17:04:52Z","modified":"2025-01-22T16:46:46Z","title":"Dgraph Audit Log Encryption nonce reuse","vendor":"dgraph-io","product":"dgraph","tier":"tail","description":{"text":"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`.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00203,"percentile":0.0583,"provenance":"source"},"cwes":[{"id":"CWE-326","name":"Inadequate Encryption Strength"}],"references":[{"url":"https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dgraph-io/dgraph/pull/8323","tags":["x_refsource_MISC"]},{"url":"https://en.wikipedia.org/wiki/Cryptographic_nonce","tags":["x_refsource_MISC"]}],"priority":{"score":3.5,"factors":[{"name":"EPSS percentile","points":1.17},{"name":"CVSS severity","points":2.31}]},"vendorSlug":"dgraph-io","affectedVersions":[{"vendor":"dgraph-io","product":"dgraph","versions":["< 23.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-22T16:46:42.150915Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/dgraph-io/dgraph","vulnerableRanges":["<23.0.0"],"patched":["23.0.0"],"from":["GHSA-92wq-q9pq-gw47"],"provenance":"source"}],"summary":{"text":"Dgraph, an open source distributed GraphQL database, has a flaw in how its audit log encryption generates nonces: the last 4 bytes derive from the length of each log line, so lines of equal length reuse the same nonce. An attacker with local access to the system where the audit logs are stored, plus low-privileged credentials on that system and no user interaction, can exploit this via brute force against the encrypted logs.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:12Z"},"euvd":{"id":"EUVD-2023-1505","exploited":false,"provenance":"source"}}