{"id":"GO-2024-3259","revision":null,"records":[{"revision":"2820045fc44b4e06963dbbee4192ee1f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-p7mv-53f2-4cwj","aliases":["GO-2024-3259"],"title":"CometBFT Vote Extensions: Panic when receiving a Pre-commit with an invalid data","description":"Name: ASA-2024-011: Vote Extensions: Panic when receiving a Pre-commit with an invalid data\nComponent: CometBFT\nCriticality: High (Considerable Impact, and Possible Likelihood per [ACMv1.2](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md))\nAffected versions: `>= 0.38.x`, unreleased `v1.x` and `main` development branches\nAffected users: Chain Builders + Maintainers, Validators\n\n### Impact\n\nA CometBFT node running in a network with [vote extensions][abci-spec] enabled could produce an invalid `Vote` message and send it to its peers. The invalid field of the `Vote` message is the `ValidatorIndex`, which identifies the sender in the `ValidatorSet` running that height of consensus. This field is ordinarily verified in the processing of `Vote` messages, but it turns out that in the case of a `Vote` message of type `Precommit` and for a non-`nil` `BlockID`, [a logic was introduced](https://github.com/cometbft/cometbft/blame/46621a87064b2ae235e122e66d9b22417b3aa35e/internal/consensus/state.go#L2357-L2364) before this ordinary verification to handle the attached vote extension. This introduced logic (not present in releases prior to `0.38.x`) does not double-check the validity of the `ValidatorIndex` field. The result is a panic in the execution of the node receiving and processing such message.\n\n#### Impact Qualification\nThis condition requires the introduction of malicious code in the full node sending this `Vote` message to its peers. Namely, nodes running upstream code cannot produce invalid `Vote` messages, with non-existing `ValidatorIndex`. Moreover, networks utilizing default behavior, where vote extensions are not enabled, are not affected by this issue.\n\n### Patches\n\nThe new CometBFT release [`v0.38.15`][v0.38.15] fixes this issue.\n\nUnreleased code in the `main` and `v1.x` branches, and experimental code in the `v0.38-experimental` and `v1.x-experimental` branches are patched as well.\n\n### Workarounds\n\nWhen the consensus code panics after receiving an invalid `Vote` message, the operator can identify the peer from which that message was received. This may require increasing the logging level of the `consensus` module. This peer can then be subsequently banned at the p2p layer as a temporary mitigation.  \n\n### References\n\n- [ABCI spec][abci-spec], in particular the operation of vote extensions\n- [Patched v0.38 release][v0.38.15]\n\n[abci-spec]: https://docs.cometbft.com/v0.38/spec/abci/abci++_basic_concepts\n[v0.38.15]: https://github.com/cometbft/cometbft/releases/tag/v0.38.15\n\n### Timeline\n\n* October 21, 2024, 3:26pm PST: Issue reported to the Cosmos Bug Bounty program\n* October 21, 2024, 3:41pm PST: Issue triaged by Amulet on-call, and distributed to Core team\n* October 29, 2024, 11:35pm PST: Core team completes validation of issue\n* October 30, 2024, 3:33am PST: Core team completes patch for issue\n* October 30, 2024, 5:09am PST: Amulet creates coordination plan; schedule for distribution\n* November 4, 2024, 8:00pm GMT: Pre-notification delivered\n* November 6, 2024, 8:00am GMT: Patch made available\n\n\nThis issue was reported by [corverroos](https://github.com/corverroos) to the Cosmos Bug Bounty Program on HackerOne on October 21, 2024. If you believe you have found a bug in the Interchain Stack or would like to contribute to the program by reporting a bug, please see https://hackerone.com/cosmos.\n\nIf you have questions about Interchain security efforts, please reach out to our official communication channel at [security@interchain.io](mailto:security@interchain.io).  For more information about the Interchain Foundation’s engagement with Amulet, and to sign up for security notification emails, please see https://github.com/interchainio/security.  \n\nA Github Security Advisory for this issue is available in the CometBFT [repository](https://github.com/cometbft/cometbft/security/advisories/GHSA-p7mv-53f2-4cwj). For more information about CometBFT, see https://docs.cometbft.com/.","state":0,"publishedAt":"2024-11-06T15:33:55+00:00","modifiedAt":"2026-09-02T22:15:05.2539067+00:00","affected":[{"ecosystem":"Go","name":"github.com/cometbft/cometbft","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.38.0"},{"kind":"fixed","version":"0.38.15"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/cometbft/cometbft/security/advisories/GHSA-p7mv-53f2-4cwj","https://github.com/cometbft/cometbft/commit/17d3bb66664cab6d6798c17e27198e15bbac1905","https://docs.cometbft.com/v0.38/spec/abci/abci++_basic_concepts","https://github.com/cometbft/cometbft","https://github.com/cometbft/cometbft/releases/tag/v0.38.15","https://nrdax.com/techniques/NRDAX-T0211","https://pkg.go.dev/vuln/GO-2024-3259"],"sourceUrl":"https://github.com/advisories/GHSA-p7mv-53f2-4cwj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p7mv-53f2-4cwj","identifiers":["GHSA-p7mv-53f2-4cwj","GO-2024-3259"]},"retained":false,"historicalAffected":[]},{"revision":"9b84d2b5e887486bb167ebdf8afa507e","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-3259","aliases":["GHSA-p7mv-53f2-4cwj"],"title":"CometBFT Vote Extensions: Panic when receiving a Pre-commit with an invalid data in github.com/cometbft/cometbft","description":"CometBFT Vote Extensions: Panic when receiving a Pre-commit with an invalid data in github.com/cometbft/cometbft","state":0,"publishedAt":"2024-11-20T17:22:48+00:00","modifiedAt":"2024-12-12T21:58:41+00:00","affected":[{"ecosystem":"Go","name":"github.com/cometbft/cometbft","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.38.0"},{"kind":"fixed","version":"0.38.15"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/cometbft/cometbft/security/advisories/GHSA-p7mv-53f2-4cwj","https://docs.cometbft.com/v0.38/spec/abci/abci++_basic_concepts","https://github.com/cometbft/cometbft/releases/tag/v0.38.15","https://github.com/cometbft/cometbft/commit/17d3bb66664cab6d6798c17e27198e15bbac1905"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-3259","license":"OSV · upstream source license applies","key":"osv:GO-2024-3259","identifiers":["GO-2024-3259","GHSA-p7mv-53f2-4cwj"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T18:46:56.4148144+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T18:46:56.4148144+00:00","lastSuccessAt":"2026-11-19T18:46:56.9278483+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:56.9280102+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-e5065ec4c3a82b0d29def79b3002b916191e670bb106b3b0edb9776bb349eab1","complete":true,"records":428966,"lastAttemptAt":"2026-11-19T18:46:55.9929019+00:00","lastSuccessAt":"2026-11-19T18:44:35.3196125+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:55.9929019+00:00","snapshotPublishedAt":"2026-11-19T18:30:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-db1c9a24d1c5430fad9db85cb14cfbf8","complete":false,"records":13866,"lastAttemptAt":"2026-11-19T18:56:30.8939068+00:00","lastSuccessAt":"2026-11-19T18:56:30.888+00:00","error":"419 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T18:56:30.888+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13490,"expectedIdentifiers":13914,"failedIdentifiers":419},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T18:46:56.4148144+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T18:46:56.4148144+00:00","lastSuccessAt":"2026-11-19T18:46:57.0058245+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:57.005825+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b45a9580a999454ca488aa4ce64ffa94","complete":true,"records":13878,"lastAttemptAt":"2026-11-19T18:46:58.4237054+00:00","lastSuccessAt":"2026-11-19T18:44:37.403+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:44:37.403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13914,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-7b847de8d346a4b605d25dfaa256e6048ccf033cdf1e65b5fde14a9872a0b2a6","complete":true,"records":9965,"lastAttemptAt":"2026-11-19T18:46:56.2777624+00:00","lastSuccessAt":"2026-11-19T16:46:59.4476531+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:56.2777624+00:00","snapshotPublishedAt":"2026-11-19T16:18:26+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T18:46:56.045552+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:56.045552+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-dcf771d02804125af0c0f27ccbde8a0dfb5f91ffa78aca098bacce9b58aa2c8b","complete":true,"records":3194,"lastAttemptAt":"2026-11-19T18:46:56.3016468+00:00","lastSuccessAt":"2026-11-19T17:46:39.253912+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:56.3016468+00:00","snapshotPublishedAt":"2026-11-19T16:48:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-a5dc42b1d82295cda343595d8a7a9b53c5349d8a398f43621d968530d472b9a6","complete":true,"records":232772,"lastAttemptAt":"2026-11-19T18:46:56.167578+00:00","lastSuccessAt":"2026-11-19T17:46:34.5427331+00:00","error":null,"lastVerifiedAt":"2026-11-19T18:46:56.167578+00:00","snapshotPublishedAt":"2026-11-19T17:33:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}