{"id":"CVE-2022-29219","published":"2022-05-24T14:15:14Z","modified":"2025-04-23T18:22:36Z","title":"Integer Overflow in Lodestar","vendor":"ChainSafe","product":"lodestar","tier":"tail","description":{"text":"Lodestar is a TypeScript implementation of the Ethereum Consensus specification. Prior to version 0.36.0, there is a possible consensus split given maliciously-crafted `AttesterSlashing` or `ProposerSlashing` being included on-chain. Because the developers represent `uint64` values as native javascript `number`s, there is an issue when those variables with large (greater than 2^53) `uint64` values are included on chain. In those cases, Lodestar may view valid_`AttesterSlashing` or `ProposerSlashing` as invalid, due to rounding errors in large `number` values. This causes a consensus split, where Lodestar nodes are forked away from the main network. Similarly, Lodestar may consider invalid `ProposerSlashing` as valid, thus including in proposed blocks that will be considered invalid by the network. Version 0.36.0 contains a fix for this issue. As a workaround, use `BigInt` to represent `Slot` and `Epoch` values in `AttesterSlashing` and `ProposerSlashing` objects. `BigInt` is too slow to be used in all `Slot` and `Epoch` cases, so one may carefully use `BigInt` just where necessary for consensus.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01344,"percentile":0.72072,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/ChainSafe/lodestar/security/advisories/GHSA-cvj7-5f3c-9vg9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ChainSafe/lodestar/pull/3977","tags":["x_refsource_MISC"]},{"url":"https://github.com/ChainSafe/lodestar/releases/tag/v0.36.0","tags":["x_refsource_MISC"]}],"priority":{"score":19.7,"factors":[{"name":"EPSS percentile","points":14.41},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"chainsafe","affectedVersions":[{"vendor":"ChainSafe","product":"lodestar","versions":["< 0.36.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:54:48.726800Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@chainsafe/lodestar","vulnerableRanges":["<0.36.0"],"patched":["0.36.0"],"from":["GHSA-cvj7-5f3c-9vg9"],"provenance":"source"}],"summary":{"text":"Lodestar, ChainSafe's TypeScript implementation of the Ethereum Consensus specification, mishandles uint64 values above 2^53 in AttesterSlashing and ProposerSlashing because they are represented as native JavaScript numbers, causing rounding errors. An attacker who gets a maliciously crafted slashing object included on-chain can cause Lodestar nodes to reject valid slashings or accept invalid proposer slashings, forking them away from the main network; no authentication, user interaction or special configuration is required, only network access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:28Z"},"euvd":{"id":"EUVD-2022-3638","exploited":false,"provenance":"source"}}