Skip to content

chore(deps): rebase forked cosmos-sdk onto v0.53.8 (base is v0.53.3, ~5 patch releases behind) #1671

Open @kaileido opened 2026-08-28 20:22 UTC 1 comment Updated 2026-11-07 05:02 UTC
release-candidate

Summary

Our forked cosmos-sdk (github.com/gonka-ai/cosmos-sdk, currently v0.53.3-ps19-observability, referenced by both inference-chain and decentralized-api via go.mod replace) is based on upstream v0.53.3 (2025-07-08). The latest upstream release in the v0.53.x line is v0.53.8 (2026-07-27), which upstream marks state-breaking and describes as containing "important security fixes" with a recommendation to upgrade via a coordinated upgrade. We are ~5 patch releases / ~13 months behind.

Current state

  • Fork base: v0.53.3 → v0.53.3-ps19-observability
  • cosmossdk.io/store: base v1.1.2 → v1.1.2-ps1
  • Latest upstream v0.53.x: v0.53.8
  • Intermediate releases we skipped: v0.53.4 (2025-07-25), v0.53.5 (2025-12-12), v0.53.6 (2026-02-10), v0.53.7 (2026-04-14)

Why upgrade — what landed in v0.53.4 → v0.53.8

Everything through the last formal advisory is already in our v0.53.3 base — ISA-2025-005 (GHSA-p22h-3m2v-cmgh, distribution integer-overflow chain-halt) was fixed in v0.53.3. The gap is the post-v0.53.3 patch releases, whose fixes touch modules we run:

  • auth — nil-pointer panic guards in GetSigningTxData (including multisig with nil Multi/BitArray); reject transactions carrying extra SignerInfos in SetPubKeyDecorator
  • crypto — validate the secp256k1 pubkey SEC1 tag byte
  • tx / signing — bound multisig signature & pubkey indexing by slice length; reject transactions with mismatched signer-info / signature counts; bound compact-bit-array index by element length
  • staking — handle redelegation when the unbonded source has been removed
  • distribution — strict + fallback behavior when withdrawing delegator rewards
  • store — isolate the traceContext map across branched stores

Several of these are panic / availability-class (a malformed transaction reaching a nil-pointer path can halt a node) and signature-validation hardening. There is no known exploitation of our deployment, but running ~13 months behind on a security-patched consensus dependency is a standing risk we should close proactively.

Proposed action

  • Rebase our psNN patch set onto upstream v0.53.8 (or cherry-pick the v0.53.4–v0.53.8 fixes if a full rebase is disruptive)
  • Apply the same review to the cosmossdk.io/store fork (v1.1.2-ps1 → latest v1.1.x)
  • Re-run the fork test suite and prepare a coordinated (state-breaking) upgrade plan
  • Add a lightweight process to watch upstream cosmos-sdk patch releases so the fork does not drift again

References

  • Upstream v0.53.8 release: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.53.8
  • Upstream v0.53.x releases: https://github.com/cosmos/cosmos-sdk/releases
  • Cosmos SDK security advisories: https://github.com/cosmos/cosmos-sdk/security/advisories

💬 Comments (1)

@kaileido commented 2026-11-07 05:02 UTC

Status check against v0.53.3-ps19-observability (pinned by main, upgrade-v0.2.16, upgrade-v0.2.17 and upgrade-v0.2.18): none of the 55 upstream commits between v0.53.3 and v0.53.8 is in the fork, either by SHA or as a cherry-pick (checked by upstream PR number, subject and patch lines). 15 of them are fixes in runtime code:

upstream commit subject
c49441c822 fix(crypto): validate secp256k1 pubkey SEC1 tag byte (#26665)
b2b06d5787 fix: bound compact bit array index by elems length (#26662)
a13c0f9fb9 fix(x/auth/ante): reject tx with extra SignerInfos in SetPubKeyDecorator (#26663)
e640d9b41b fix: reject tx with mismatched signer info and signature counts (#26653)
a35744565a fix(x/auth/tx): avoid nil pointer panic in GetSigningTxData for multisig ModeInfo with a nil Multi or nil Bitarray
a91a822eb2 fix(x/auth/tx): avoid nil pointer panic in GetSigningTxData (#26661)
45d48b3a1b fix: bound multisig signature and pubkey indexing by slice lengths (#26651)
d46c6303ee fix(x/distribution): return errors for missing historical rewards internally (#26655)
e1a737ffc2 fix(distribution): add strict + fallback behavior when withdrawing delegator rewards (#26410)
91a3dd6a1c fix(x/staking): handle redelegation when unbonded source is removed (#26417)
3fcf23af3f fix(store/cachemulti): isolate traceContext map across branched stores (#25841)
d9d77304fd fix: limit pagination (#25871)
4379cc49ae fix(baseapp): index pre-block events (#25643)
e1bc1f93f4 fix: add missing close when graceful shutdown (#25634)
d9e5021361 fix(cli): failed to convert address field in withdraw-validator-commission (#25489)

The x/distribution and x/staking files touched by e1a737ff, 91a3dd6a and d46c6303 are patched in the fork, so those three need a manual merge; the other twelve touch files unchanged in the fork since v0.53.3.


🔄 Auto-synced from Issue #1671 every hour.