CVE-2023-31135

Dgraph Audit Log Encryption nonce reuse

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`.

Category

3.3
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.04%
Vendor Advisory github.com
Affected: dgraph-io dgraph
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-31135?
CVE-2023-31135 has been scored as a low severity vulnerability.
How to fix CVE-2023-31135?
To fix CVE-2023-31135, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-31135 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-31135 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-31135?
CVE-2023-31135 affects dgraph-io dgraph.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.