Vulnerability DatabaseGHSA-fr8m-434r-g3xp

GHSA-fr8m-434r-g3xp
vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-fr8m-434r-g3xp) affects gnark-crypto's signature deserialization process prior to version 0.12.0. The issue was discovered and disclosed on October 15, 2025, impacting ECDSA and EdDSA signature implementations in the gnark-crypto library. The vulnerability stems from insufficient range checking of input values during signature deserialization (GitHub Advisory).

Technical details

During deserialization of ECDSA and EdDSA signatures, gnark-crypto failed to verify that values fall within the range [1, n-1], where n represents the corresponding modulus (base field modulus for R in EdDSA, and scalar field modulus for s,r in ECDSA and s in EdDSA). The vulnerability has been assigned a CVSS score of 5.1 with a vector of CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L, indicating moderate severity (GitHub Advisory).

Impact

The vulnerability allowed zero inputs, which could lead to null pointer dereference resulting in denial-of-service of applications. Additionally, it enabled weak signature malleability when users assumed uniqueness of serialized signatures without considering the underlying modulo reduced values (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.12.0 and later releases. The fix implements proper range checking during deserialization, ensuring values belong to the [1, n-1] range. For users unable to upgrade immediately, a workaround involves manually validating input values to be within the corresponding ranges when using serialized signatures. To address potential denial-of-service issues, users can implement panic recovery hooks (GitHub Advisory, GitHub Release).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management