Email me

Rust advisories / cggmp21

Vulnerability HighRUSTSEC-2025-0127 · cggmp21

RUSTSEC-2025-0127: CGGMP21 presignatures can be used in the way that significantly reduces security

Short answerA security vulnerability in the cggmp21 crate: CGGMP21 presignatures can be used in the way that significantly reduces security. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.

Cratecggmp21
TypeVulnerability (crypto-failure)
Affected versionsEvery version.
Fixed innone
SeverityHigh (GitHub rating)
Published2025-11-24
Last changed2025-11-26
Also known asCVE-2025-66017, GHSA-8frv-q972-9rq5, RUSTSEC-2025-0128

What to do

  1. Find who pulls it in: cargo tree -i cggmp21.
  2. Avoid the affected API, or replace the crate.

Details from the advisory

This attack is against presignatures used in very specific context:

  • Presignatures + HD wallets derivation: security level reduces to 85 bits \ Previously you could generate a presignature, and then choose a HD derivation path while issuing a partial signature via Presignature::set_derivation_path, which is malleable to attack that reduces target security level. To mitigate, this method has been removed from API.
  • Presignatures + "raw signing" (when signer signs a hash without knowing an original message): results into signature forgery attack \ Previously, you could use Presignature::issue_partial_signature with hashed message without ever providing original mesage. In new API, this method only accepts digests for which original message has been observed.

Patches

cggmp24 v0.7.0-alpha.2 release contains API changes that make it impossible to use presignatures in contexts in which it reduces security. Follow the migration guidelines to upgrade.

Workarounds

You can continue using un-patched versions of library as long as you don't use presignatures in said scenarios where it weakens system security. To be sure, migrate to patched version that excludes presignatures from being used in such scenarios.

References

Read our blog post to learn more.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for cggmp21

Full security history of cggmp21

Up next

Same cratecggmp21: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ