{"id":"GHSA-m6wq-66p2-c8pc","aliases":["GHSA-m6wq-66p2-c8pc","GO-2025-4211"],"related":[],"kind":"vulnerability","state":"published","title":"Babylon Nil BlockHash in BLS vote extensions triggers panics in consensus handlers","summary":"### Summary\n\nA vulnerability exists in Babylon’s BLS vote extension processing where a malicious active validator can submit a VoteExtension with the `block_hash` field omitted from the protobuf serialization. Because protobuf fields are optional, unmarshalling succeeds but leaves `BlockHash` as nil. Babylon then dereferences this nil pointer in consensus-critical code paths (notably `VerifyVoteExtension`, and also proposal-time vote verification), causing a runtime panic.\n\n### Impact\n\nIntermittent validator crashes at epoch boundaries, which would slow down the creation of the epoch boundary block.\n\n### Finder \n\nVulnerability discovered by:\n\n- @GrumpyLaurie55348","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\n\nA vulnerability exists in Babylon’s BLS vote extension processing where a malicious active validator can submit a VoteExtension with the `block_hash` field omitted from the protobuf serialization. Because protobuf fields are optional, unmarshalling succeeds but leaves `BlockHash` as nil. Babylon then dereferences this nil pointer in consensus-critical code paths (notably `VerifyVoteExtension`, and also proposal-time vote verification), causing a runtime panic.\n\n### Impact\n\nIntermittent validator crashes at epoch boundaries, which would slow down the creation of the epoch boundary block.\n\n### Finder \n\nVulnerability discovered by:\n\n- @GrumpyLaurie55348","format":"markdown","source":"ghsa"},{"lang":"en","text":"Babylon Nil BlockHash in BLS vote extensions triggers panics in consensus handlers in github.com/babylonlabs-io/babylon","format":"markdown","source":"go"}],"published":"2025-12-08T22:20:24.000Z","modified":"2026-03-03T04:57:45.952Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.2.0"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon/v4","purl":"pkg:golang/github.com/babylonlabs-io/babylon/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.0.0-snapshot.250805a"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon/v3","purl":"pkg:golang/github.com/babylonlabs-io/babylon/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.3.2"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon/v2","purl":"pkg:golang/github.com/babylonlabs-io/babylon/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.0"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon","purl":"pkg:golang/github.com/babylonlabs-io/babylon","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon","purl":"pkg:golang/github.com/babylonlabs-io/babylon","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon/v2","purl":"pkg:golang/github.com/babylonlabs-io/babylon/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon/v3","purl":"pkg:golang/github.com/babylonlabs-io/babylon/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.2.0"}],"ecosystem":"Go","package":"github.com/babylonlabs-io/babylon/v4","purl":"pkg:golang/github.com/babylonlabs-io/babylon/v4","source":"go"}],"references":[{"url":"https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-m6wq-66p2-c8pc","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/babylonlabs-io/babylon/commit/f79ad58c1d5bcab3451cb7a47c91e713935917d7","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/babylonlabs-io/babylon","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m6wq-66p2-c8pc","url":"https://github.com/advisories/GHSA-m6wq-66p2-c8pc","licence":"CC-BY-4.0","modified":"2025-12-17T01:20:34.876Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4211","url":"https://pkg.go.dev/vuln/GO-2025-4211","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:45.952Z"}],"updatedAt":"2026-11-25T22:56:24.251Z"}