{"id":"CVE-2022-29219","aliases":["GHSA-cvj7-5f3c-9vg9"],"url":"https://o3.security/vulnerability/CVE-2022-29219","summary":"Integer Overflow in Lodestar","details":"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.","published":"2022-05-24T14:15:14Z","modified":"2026-07-15T01:49:07.709027310Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@chainsafe/lodestar","fixedVersion":"0.36.0"}],"fix":{"url":"https://github.com/ChainSafe/lodestar/pull/3977","label":"ChainSafe/lodestar#3977"},"references":[{"type":"WEB","url":"https://github.com/ChainSafe/lodestar/releases/tag/v0.36.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29219.json"},{"type":"ADVISORY","url":"https://github.com/ChainSafe/lodestar/security/advisories/GHSA-cvj7-5f3c-9vg9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29219"},{"type":"FIX","url":"https://github.com/ChainSafe/lodestar/pull/3977"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:07.709027310Z"}}