GHSA-HJ3G-HH5F-63MP
Discovery peer contact book poisoning via future timestamps
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-HJ3G-HH5F-63MP divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Impact
`network-libp2p` stores discovery peer contacts in `PeerContactBook` and prunes them via periodic housekeeping based on age (`MAX_PEER_AGE`). the age check is implemented in `PeerContactInfo::exceeds_age`, which computes `unix_time.checked_sub(timestamp)` and treats `None` (future timestamp) as “not old”.
Incoming discovery updates accept validly signed peer contacts without rejecting timestamps in the future. As a result, an untrusted p2p peer can inject peer contacts with far-future timestamps that will never be removed by housekeeping.
Impact is minimal:
- There is a per-update limit of 64 contacts.
- Memory: Would take ~1,562 updates to reach 100K contacts (100-200 MB).
- CPU: Housekeeping is O(n) but runs every 60s - negligible impact.
- These contacts don't affect dialing behavior.
### Patches
The patch for this vulnerability https://github.com/nimiq/core-rs-albatross/pull/3655 is formally released as part of v1.3.0 https://github.com/nimiq/core-rs-albatross/releases/tag/v1.3.0.
### Workarounds
No known workarounds.
### References
See PR https://github.com/nimiq/core-rs-albatross/pull/3655.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
crates.ionimiq-network-libp2p |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-hj3g-hh5f-63mpLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
