# CVE-2022-29219: Integer Overflow in Lodestar

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-11-30)
- Published: 2022-05-24T14:15:14.000Z
- Modified: 2026-06-17T04:39:51.280Z
- Also known as: GHSA-cvj7-5f3c-9vg9
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ChainSafe lodestar: < 0.36.0; before 0.36.0
- @chainsafe/lodestar (npm): before 0.36.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/ChainSafe/lodestar/security/advisories/GHSA-cvj7-5f3c-9vg9> (patch, third-party-advisory, web)
- <https://github.com/ChainSafe/lodestar/pull/3977> (patch, third-party-advisory, web)
- <https://github.com/ChainSafe/lodestar/releases/tag/v0.36.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29219> (advisory)
- <https://github.com/ChainSafe/lodestar> (package)

## Sources

- CVE List: [CVE-2022-29219](https://www.cve.org/CVERecord?id=CVE-2022-29219), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-cvj7-5f3c-9vg9](https://github.com/advisories/GHSA-cvj7-5f3c-9vg9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-29219](https://nvd.nist.gov/vuln/detail/CVE-2022-29219), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-29219 · Whole record: https://cve.day/CVE-2022-29219.json · Rebuilt by cve.day 2026-11-25T22:58:11.914Z
