{"id":"CVE-2023-31135","sourceIdentifier":"security-advisories@github.com","published":"2023-05-17T18:15:09.437","lastModified":"2026-10-23T23:10:00.157","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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`."},{"lang":"es","value":"Dgraph es una base de datos GraphQL distribuida de código abierto. Los registros de auditoría de Dgraph existentes son vulnerables a ataques de fuerza bruta debido a colisiones de nonce. Los primeros 12 bytes provienen de un baseIv que se inicializa cuando se crea un registro de auditoría. Los últimos 4 bytes provienen de la longitud de la línea de registro que se está cifrando. Esto es problemático porque dos líneas de registro a menudo tendrán la misma longitud, por lo que debido a estas colisiones estamos reutilizando el mismo nonce muchas veces. Todos los registros de auditoría generados por versiones de Dgraph anterior a v23.0.0 están afectados. Los atacantes deben tener acceso al sistema donde se almacenan los registros. Los usuarios de Dgraph deben actualizar a v23.0.0. Los usuarios que no puedan actualizar deben almacenar los registros de auditoría existentes en una ubicación segura y, para mayor seguridad, cifrarlos utilizando una herramienta externa como 'gpg'."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"dgraph-io","product":"dgraph","versions":[{"version":"< 23.0.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","baseScore":3.3,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":1.4},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-01-22T16:46:42.150915Z","id":"CVE-2023-31135","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-326"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:dgraph:dgraph:*:*:*:*:*:go:*:*","versionEndExcluding":"23.0.0","matchCriteriaId":"662699FF-8150-4D0E-817D-431360751CCF"}]}]}],"references":[{"url":"https://en.wikipedia.org/wiki/Cryptographic_nonce","source":"security-advisories@github.com","tags":["Technical Description"]},{"url":"https://github.com/dgraph-io/dgraph/pull/8323","source":"security-advisories@github.com","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47","source":"security-advisories@github.com","tags":["Vendor Advisory"]},{"url":"https://en.wikipedia.org/wiki/Cryptographic_nonce","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Technical Description"]},{"url":"https://github.com/dgraph-io/dgraph/pull/8323","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/dgraph-io/dgraph/security/advisories/GHSA-92wq-q9pq-gw47","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"]}]}