Advisory

GHSA-wwx5-gpgr-vxr7

Also known as: CVE-2025-24800

Summary

ismp-grandpa crate accepted incorrect signatures

Details

A critical vulnerability was discovered in the ismp-grandpa crate, that allowed a malicious prover easily convince the verifier of the finality of arbitrary headers.

Description

The vulnerability manifests as a verifer that only accepts incorrect signatures of Grandpa precommits and was introduced in this specific commit. Perhaps due to unfamiliarity with core substrate APIs. The if statement should have included a negation check, similar to the previous code, but this was omitted. Causing the verifier to only accept invalid signatures.

This vulnerability remained undetected even with integration tests, as the prover was also misconfigured to initialize the Grandpa verifier with the incorrect authority set_id. This causes verification of honest precommit signatures to fail as the message is now malformed, but the verifier indeed only accepts signatures or messages that fail the verification check.

But even more devastatingly, the verifier will also accept malicious GRANDPA signatures for any precommit message.

This vulnerability has been fixed in this commit and a patch release has been published.

Impact
This could be used to steal funds or compromise other kinds of cross-chain applications.

Patches
This vulnerability has been fixed in the latest version of ismp-granpda v15.0.1

Recommendations
Users who rely on the compromised versions must upgrade immediately, as all vulnerable versions of the crate has been yanked.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2025-01-28 17:29 UTC
Modified
2025-01-28 20:15 UTC

Affected packages and fixes

ismp-grandpa

crates.io · All systems

Affected

  • introduced 0, fixed 15.0.1 (semver)

Fixed versions

15.0.1

Fix

  • Fixed version 15.0.1
    cargo update -p ismp-grandpa --precise 15.0.1

grandpa-verifier-primitives

crates.io · All systems

Affected

  • introduced 0, fixed 0.1.2 (semver)

Fixed versions

0.1.2

Fix

  • Fixed version 0.1.2
    cargo update -p grandpa-verifier-primitives --precise 0.1.2

grandpa-verifier

crates.io · All systems

Affected

  • introduced 0, fixed 0.1.2 (semver)

Fixed versions

0.1.2

Fix

  • Fixed version 0.1.2
    cargo update -p grandpa-verifier --precise 0.1.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences