7.5high
nimiq/core-rs-albatross: Discovery handshake limit could underflow and later provoke a deterministic overflow panic
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
nimiq/core-rs-albatross is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.3.0, the discovery handler accepts a peer-controlled limit during handshake and stores it unchanged. The immediate HandshakeAck path then honors limit = 0 and returns zero contacts, which makes the session look benign. Later, after the same session reaches Established, the periodic update path computes self.peer_list_limit.unwrap() as usize - 1. With limit = 0, that wraps to usize::MAX and then in rand 0.9.2, choose_multiple() immediately attempts Vec::with_capacity(amount), which deterministically panics with capacity overflow. This issue has been patched in version 1.3.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nimiq core-rs-albatross | < 1.3.0 | CVE List |
| nimiq nimiq_proof-of-stake | up to 1.2.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
nimiq/core-rs-albatross is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.3.0, the discovery handler accepts a peer-controlled limit during handshake and stores it unchanged. The immediate HandshakeAck path then honors limit = 0 and returns zero contacts, which makes the session look benign. Later, after the same session reaches Established, the periodic update path computes self.peer_list_limit.unwrap() as usize - 1. With limit = 0, that wraps to usize::MAX and then in rand 0.9.2, choose_multiple() immediately attempts Vec::with_capacity(amount), which deterministically panics with capacity overflow. This issue has been patched in version 1.3.0.
NVD (es)
nimiq/core-rs-albatross es una implementación en Rust del protocolo Nimiq Proof-of-Stake basado en el algoritmo de consenso Albatross. Antes de la versión 1.3.0, el gestor de descubrimiento acepta un límite controlado por el par durante el handshake y lo almacena sin cambios. La ruta inmediata de HandshakeAck entonces respeta límite = 0 y devuelve cero contactos, lo que hace que la sesión parezca benigna. Más tarde, después de que la misma sesión alcanza el estado Establecido, la ruta de actualización periódica calcula self.peer_list_limit.unwrap() como usize - 1. Con límite = 0, eso se ajusta a usize::MAX y luego en rand 0.9.2, choose_multiple() intenta inmediatamente Vec::with_capacity(amount), lo que provoca un pánico determinista por desbordamiento de capacidad. Este problema ha sido parcheado en la versión 1.3.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-33184 changed 2026-04-06 | CVE Terms of Use |
| NVD | CVE-2026-33184 changed 2026-07-24 | Public domain |