CVE-2025-66017: cggmp24 and cggmp21 are vulnerable to signature forgery through altered presignatures
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::setderivationpath, which is malleable to attack that reduces target security level.
Published Nov 25, 2025 · Updated Nov 27, 2025
Affected packages
cggmp21
- Ecosystem
- Rust (crates.io)
- Affected
- <= 0.6.3
- Fixed in
- No patched version yet
- Check
cargo tree -i cggmp21
cggmp24
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.7.0-alpha.2
- Fixed in
- 0.7.0-alpha.2
- Check
cargo tree -i cggmp24
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/LFDT-Lockness/cggmp21/security/advisories/GHSA-8frv-q972-9rq5
- https://github.com/LFDT-Lockness/cggmp21/commit/9d98157e151596573cb071da59d27a4e0ac9b8dc
- https://rustsec.org/advisories/RUSTSEC-2025-0127.html
- https://rustsec.org/advisories/RUSTSEC-2025-0128.html
- https://www.dfns.co/article/cggmp21-vulnerabilities-patched-and-explained
- https://nvd.nist.gov/vuln/detail/CVE-2025-66017
- https://github.com/advisories/GHSA-8frv-q972-9rq5
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
