6.5medium
Nimiq light-blockchain: Light blockchain rebranch issue
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Nimiq is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.4.0, when LightBlockchain::rebranch() adopts a fork chain whose tip is a macro block (checkpoint or election), it only updates self.head but fails to update self.macro_head, self.election_head, self.current_validators, or store the election header in the chain_store. This is in direct contrast with the full Blockchain::rebranch() at blockchain/src/blockchain/push.rs:504-518, which correctly updates all macro/election state when the new head is a macro block. After a rebranch to a macro block, the stale macro_head causes subsequent macro blocks pushed via push() to be verified against the wrong predecessor via verify_macro_successor(&this.macro_head). If the rebranch target was an election block, the stale current_validators causes every subsequent block to fail verify_validators(), completely stalling the light client's chain progression. This issue has been patched in version 1.4.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nimiq core-rs-albatross | < 1.4.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Nimiq is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.4.0, when LightBlockchain::rebranch() adopts a fork chain whose tip is a macro block (checkpoint or election), it only updates self.head but fails to update self.macro_head, self.election_head, self.current_validators, or store the election header in the chain_store. This is in direct contrast with the full Blockchain::rebranch() at blockchain/src/blockchain/push.rs:504-518, which correctly updates all macro/election state when the new head is a macro block. After a rebranch to a macro block, the stale macro_head causes subsequent macro blocks pushed via push() to be verified against the wrong predecessor via verify_macro_successor(&this.macro_head). If the rebranch target was an election block, the stale current_validators causes every subsequent block to fail verify_validators(), completely stalling the light client's chain progression. This issue has been patched in version 1.4.0.
NVD (es)
Nimiq 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.4.0, cuando LightBlockchain::rebranch() adopta una cadena bifurcada cuya punta es un macrobloque (punto de control o elección), solo actualiza self.head pero no actualiza self.macro_head, self.election_head, self.current_validators, ni almacena el encabezado de la elección en el chain_store. Esto contrasta directamente con el Blockchain::rebranch() completo en blockchain/src/blockchain/push.rs:504-518, que actualiza correctamente todo el estado de macro/elección cuando el nuevo head es un macrobloque. Después de un rebranch a un macrobloque, el macro_head obsoleto causa que los macrobloques subsiguientes empujados a través de push() sean verificados contra el predecesor incorrecto a través de verify_macro_successor(&this.macro_head). Si el objetivo del rebranch era un bloque de elección, los current_validators obsoletos causan que cada bloque subsiguiente falle verify_validators(), deteniendo completamente la progresión de la cadena del cliente ligero. Este problema ha sido parcheado en la versión 1.4.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46540 changed 2026-06-10 | CVE Terms of Use |
| NVD | CVE-2026-46540 changed 2026-07-23 | Public domain |