LowGO-2024-2638GHSA-95rx-m9m5-m94v

ValidateVoteExtensions function in Cosmos SDK may allow incorrect voting power assumptions in github.com/cosmos/cosmos-sdk

Published 10 May 2024 · Updated 20 May 2024

Is your project on an affected github.com/cosmos/cosmos-sdk?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=0.50.0 <0.50.5
Fixed in
0.50.5
Update to the fixed version for your release line, for example:go get github.com/cosmos/cosmos-sdk@v0.50.5

Details

The default ValidateVoteExtensions helper function infers total voting power based on the injected VoteExtension, which are injected by the proposer.

If your chain utilizes the ValidateVoteExtensions helper in ProcessProposal, a dishonest proposer can potentially mutate voting power of each validator it includes in the injected VoteExtension, which could have potentially unexpected or negative consequences on modified state. Additional validation on injected VoteExtension data was added to confirm voting power against the state machine.

Is GO-2024-2638 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/cosmos/cosmos-sdk, and gives you the command that fixes it.

More advisories for github.com/cosmos/cosmos-sdk

  • LowGO-2025-3803Integer Overflow vulnerability in its Validator Rewards pool can cause a chain halt in github.com/cosmos/cosmos-sdk · 28 Jul 2025
  • HighGHSA-p22h-3m2v-cmghCosmos SDK's Integer Overflow vulnerability in its Validator Rewards pool can cause a chain halt · 8 Jul 2025
  • LowGO-2025-3516Cosmos SDK can halt when erroring in EndBlocker in github.com/cosmos/cosmos-sdk/ · 18 Mar 2025
  • HighGHSA-47ww-ff84-4jrgCosmos SDK: x/group can halt when erroring in EndBlocker · 12 Mar 2025
  • LowGO-2025-3476Cosmos SDK: Groups module can halt chain when handling a malicious proposal in github.com/cosmos/cosmos-sdk · 3 Mar 2025
  • HighGHSA-x5vx-95h7-rv4pCosmos SDK: Groups module can halt chain when handling a malicious proposal · 20 Feb 2025
All 23 advisories for github.com/cosmos/cosmos-sdk

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.