5.3medium
Consensys Discovery Nonce Reuse
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-w3hj-wr2q-x83g
Description
Consensys Discovery versions less than 0.4.5 uses the same AES/GCM nonce for the entire session. which should ideally be unique for every message. The node's private key isn't compromised, only the session key generated for specific peer communication is exposed.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tech.pegasys.discovery:discovery | before 0.4.5 | CVE List |
| tech.pegasys.discovery:discovery (Maven) | before 0.4.5 | GitHub Advisory Database |
| consensys discovery | before 0.4.5 | NVD |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | low rating | |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
Consensys Discovery versions less than 0.4.5 uses the same AES/GCM nonce for the entire session. which should ideally be unique for every message. The node's private key isn't compromised, only the session key generated for specific peer communication is exposed.
GitHub Advisory Database
Discovery uses the same AES/GCM Nonce throughout the session though it should be generated on per message basis which can lead to the leaking of the session key. As the actual ENR record is signed with a different key it is not possible for an attacker to alter the ENR record. Note that the node private key is not compromised, only the session key generated to communicate with an individual peer.
From discovery spec:
The number of messages which can be encrypted with a certain session key is limited because encryption of each message requires a unique nonce for AES-GCM. In addition to the keys, the session cache must also keep track of the count of outgoing messages to ensure the uniqueness of nonce values. Since the wire protocol uses 96 bit AES-GCM nonces, it is strongly recommended to generate them by encoding the current outgoing message count into the first 32 bits of the nonce and filling the remaining 64 bits with random data generated by a cryptographically secure random number generator.
NVD (es)
Las versiones de Consensys Discovery inferiores a 0.4.5 utilizan el mismo nonce AES/GCM durante toda la sesión que idealmente debería ser único para cada mensaje. La clave privada del nodo no está comprometida, solo se expone la clave de sesión generada para una comunicación entre pares específica.
References
| https://github.com/ConsenSys/discovery/security/advisories/GHSA-w3hj-wr2q-x83g | vendor-advisory, web | |
| https://github.com/advisories/GHSA-w3hj-wr2q-x83g | third-party-advisory, vendor-advisory | |
| https://vulncheck.com/advisories/vc-advisory-GHSA-w3hj-wr2q-x83g | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-23688 | advisory | |
| https://github.com/ConsenSys/discovery | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23688 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w3hj-wr2q-x83g changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2024-23688 changed 2026-07-14 | Public domain |