{"answers":{"affected":"2 open source packages ship an affected version, including github.com/dgraph-io/dgraph. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-31135 in the wild and no public exploit code.","fix":"Upgrade github.com/dgraph-io/dgraph to 23.0.0 or later.","what":"CVE-2023-31135 is a low-severity vulnerability in dgraph-io dgraph, published on 17 May 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-31135 and fix it if it is affected.\n\nWhat it is: CVE-2023-31135 is a low-severity vulnerability in dgraph-io dgraph, published on 17 May 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-31135 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/dgraph-io/dgraph (Go): affected all versions; fixed in 23.0.0\n- github.com/dgraph-io/dgraph (Go): affected all versions; fixed in 23.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-31135/ (Markdown: https://insights.sbomify.com/CVE-2023-31135/index.md)","id":"CVE-2023-31135","markdown":"https://insights.sbomify.com/CVE-2023-31135/index.md","name":"CVE-2023-31135","record":{"aliases":["GHSA-92wq-q9pq-gw47"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Dgraph database","requires_auth":"low_privilege","summary":"Attackers with log access can brute-force decrypt Dgraph audit logs due to nonce reuse in encryption.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dgraph","vendor":"dgraph"}],"cvss":{"score":3.3,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-326","name":"Inadequate Encryption Strength"}],"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 \u003cv23.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`.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Dgraph Audit Log Encryption nonce reuse","id":"CVE-2023-31135","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"PostgresNIO processes unencrypted bytes from man-in-the-middle","id":"CVE-2023-31136"},"packages":[{"ecosystem":"Go","fixed":["23.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph","purl":null,"source":"GHSA-92wq-q9pq-gw47"},{"ecosystem":"Go","fixed":["23.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph","purl":"pkg:golang/github.com/dgraph-io/dgraph","source":"GHSA-92wq-q9pq-gw47"}],"prev":{"headline":"Tauri Open Redirect Vulnerability Possibly Exposes IPC to External Sites","id":"CVE-2023-31134"},"products":["dgraph"],"published":"2023-05-17","related":[{"cvss_score":10,"headline":"Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization","id":"CVE-2026-34976","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":9.8,"headline":"Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars in Dgraph","id":"CVE-2026-41492","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":9.4,"headline":"Dgraph: Unauthenticated pprof endpoint leaks admin auth token","id":"CVE-2026-40173","kev_date_added":null,"published":"2026-04-15"},{"cvss_score":9.1,"headline":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition Field","id":"CVE-2026-41327","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":9.1,"headline":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field","id":"CVE-2026-41328","kev_date_added":null,"published":"2026-04-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-22","vendors":["dgraph-io"]},"summary":"Attackers with log access can brute-force decrypt Dgraph audit logs due to nonce reuse in encryption.","url":"https://insights.sbomify.com/CVE-2023-31135/"}