Integer Overflow in Lodestar
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ChainSafe | lodestar | before 0.36.0 | 0.36.0 | Patch available | CNA |
| — | @chainsafe/lodestar (npm) | before 0.36.0 | 0.36.0 | Patch available | GHSA-cvj7-5f3c-9vg9 |
- lodestar VendorChainSafe Affected before 0.36.0 Fixed in 0.36.0 Patch available CNA
- @chainsafe/lodestar (npm) Vendor— Affected before 0.36.0 Fixed in 0.36.0 Patch available GHSA-cvj7-5f3c-9vg9
Remediation
- Fix · CNA lodestar (ChainSafe) Fixed in 0.36.0
- Fix · GHSA-cvj7-5f3c-9vg9 @chainsafe/lodestar (npm) Fixed in 0.36.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-29219
- 2026-10-03 Alias added: GHSA-cvj7-5f3c-9vg9
References
Sources
- CVE-2022-29219 · CVE Program
- CVE-2022-29219 · NVD
- FIRST EPSS
- GHSA-cvj7-5f3c-9vg9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences