CVE-2024-23688
JSON

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 packageVersionsReported by
tech.pegasys.discovery:discoverybefore 0.4.5CVE List
tech.pegasys.discovery:discovery (Maven)before 0.4.5GitHub Advisory Database
consensys discoverybefore 0.4.5NVD

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHublow rating
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-323CWE-330

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2024-23688 changed 2026-11-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-w3hj-wr2q-x83g changed 2026-07-08CC-BY-4.0
NVDCVE-2024-23688 changed 2026-07-14Public domain