CVE-2024-23688
Discovery uses the same AES/GCM Nonce throughout the session
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| tech.pegasys.discovery » discovery | < 0.4.5 | 0.4.5 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 10 |
| 2 hops | 85 |
| 3 hops | 24 |
Most used dependents
- org.hyperledger.besu.internal » api18 usages
- org.hyperledger.besu.internal » p2p15 usages
- org.hyperledger.besu.internal » eth14 usages
- org.hyperledger.besu.internal » blockcreation13 usages
- tech.pegasys.teku.internal » eth29 usages
- org.hyperledger.besu.internal » common8 usages
- tech.pegasys.teku.internal » provider8 usages
- tech.pegasys.teku.internal » sync7 usages
- org.hyperledger.besu.internal » besu6 usages
- tech.pegasys.teku.internal » p2p6 usages
- org.hyperledger.besu.internal » permissioning5 usages
- org.hyperledger.besu.internal » clique4 usages
- org.hyperledger.besu.internal » ibft4 usages
- tech.pegasys.teku.internal » coordinator4 usages
- org.hyperledger.besu.internal » qbft3 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
