CVE-2023-31135
What it is
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`.
At a glance
- Exploitability
- Can be exploited locally on the machine with a low-privilege account. Limited direct impact.
- Exploit odds
- 0.2% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.2% in the next 30 days (EPSS).
- Severity: 3.3 LOW (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.2% · EPSS, next 30 days
- Weakness
- CWE-326 · Inadequate encryption strength
- Record status
- Modified
Affected
- Dgraph < 23.0.0
Attack profile CVSS 3.1 · 3.3
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2023-31135.md and follow it. Check whether this project is affected by CVE-2023-31135. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/dgraph-io/dgraph/pull/8323
- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47
- https://github.com/dgraph-io/dgraph/pull/8323
- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47
References
- https://en.wikipedia.org/wiki/Cryptographic_nonce
- https://github.com/dgraph-io/dgraph/pull/8323
- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47
- https://en.wikipedia.org/wiki/Cryptographic_nonce
- https://github.com/dgraph-io/dgraph/pull/8323
- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47