{"id":"CVE-2026-46540","aliases":["CVE-2026-46540"],"related":[],"kind":"vulnerability","state":"published","title":"Nimiq light-blockchain: Light blockchain rebranch issue","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-09T23:45:01.847Z","modified":"2026-07-23T09:10:00.113Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-841"],"affected":[{"ranges":[{"version":"< 1.4.0","status":"affected"}],"vendor":"nimiq","product":"core-rs-albatross","source":"cvelist"}],"references":[{"url":"https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-m3pg-qc2q-mg8c","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nimiq/core-rs-albatross/pull/3706","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nimiq/core-rs-albatross/releases/tag/v1.4.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-10T12:59:40.645Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46540","url":"https://www.cve.org/CVERecord?id=CVE-2026-46540","licence":"CVE Terms of Use","modified":"2026-06-10T13:00:12.382Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46540","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46540","licence":"Public domain","modified":"2026-07-23T09:10:00.113Z"}],"updatedAt":"2026-11-25T22:59:24.300Z","epss":{"score":0.00259,"percentile":0.18785,"date":"2026-12-01T12:00:22.000Z"}}