—
GO-2025-4027
Gnark-crypto doesn't range check input values during ECDSA and EdDSA deserialization in github.com/consensys/gnark-crypto
Quick fix
GO-2025-4027 — github.com/consensys/gnark-crypto: upgrade to the fixed version with the command below.
go get github.com/consensys/gnark-crypto@v0.12.0Details
Gnark-crypto doesn't range check input values during ECDSA and EdDSA deserialization in github.com/consensys/gnark-crypto
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/consensys/gnark-crypto
Introduced in:
0Fixed in: 0.12.0Fix
go get github.com/consensys/gnark-crypto@v0.12.0References
- https://github.com/Consensys/gnark-crypto/security/advisories/GHSA-fr8m-434r-g3xp[ADVISORY]
- https://github.com/Consensys/gnark-crypto/pull/449[WEB]
- https://github.com/Consensys/gnark-crypto/releases/tag/v0.12.0[WEB]
- https://github.com/advisories/GHSA-9xfq-8j3r-xp5g[WEB]
- https://go.dev/blog/defer-panic-and-recover[WEB]