Advisory

GHSA-8frv-q972-9rq5

Also known as: CVE-2025-66017, RUSTSEC-2025-0127, RUSTSEC-2025-0128

Summary

cggmp24 and cggmp21 are vulnerable to signature forgery through altered presignatures

Details

Impact
This attack is against presignatures used in very specific context:

  • Presignatures + HD wallets derivation: security level reduces to 85 bits \ Previously users 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, users were able to configure `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 migration guidelines to upgrade.

Workarounds
Users can continue using un-patched versions of library as long as they 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 this blog post to learn more.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-11-25 20:42 UTC
Modified
2025-11-27 09:16 UTC

Affected packages and fixes

cggmp21

crates.io · All systems

Affected

  • introduced 0, last affected 0.6.3 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

cggmp24

crates.io · All systems

Affected

  • introduced 0, fixed 0.7.0-alpha.2 (semver)

Fixed versions

0.7.0-alpha.2

Fix

  • Fixed version 0.7.0-alpha.2
    cargo update -p cggmp24 --precise 0.7.0-alpha.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