CVE-2023-44273
criticalpriority · track · 39EPSS 0.011 · 64 %ileEUUSEPSS · scored 2026-10-28
Consensys gnark-crypto through 0.11.2 allows Signature Malleability. This occurs because deserialisation of EdDSA and ECDSA signatures does not ensure that the data is in a certain interval.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- GHSA-9xfq-8j3r-xp5gDuplicate Advisory: Consensys gnark-crypto allows Signature Malleability2023-09-28ghsa · osvUS
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-fr8m-434r-g3xp. This link is maintained to preserve external references. ## Original Description Consensys gnark-crypto through 0.11.2 allows Signature Malleability. This occurs because deserialisation of EdDSA and ECDSA signatures does not ensure that the data is in a certain interval.
- GHSA-fr8m-434r-g3xpgnark-crypto doesn't range check input values during ECDSA and EdDSA signature deserialization2025-10-15ghsa · osvUS
### Impact During deserialization of ECDSA and EdDSA signatures gnark-crypto did not check that the values are in the range `[1, n-1]` with `n` being the corresponding modulus (either base field modulus in case of `R` in EdDSA, and scalar field modulus in case of `s,r` in ECDSA and `s` in EdDSA). As this also allowed zero inputs, then it was possible to craft a signature which lead to null pointer dereference, leading to denial-of-service of an application. This also enabled weak signature malleability when the users assumed uniqueness of the serialized signatures (but not the underlying modulo reduced values). We are not aware of any users impacted by the bug. The implemented signature schemes in gnark-crypto complement the in-circuit versions in gnark, allowing to have end-to-end tests. ### Patches The issue was patched in PR #449. The fix returns an error during deserialization if the values do not belong to the ranges `[1, n-1]`. The fix is included in release v0.12.0 and upwards. ### Workarounds Users can manually validate the inputs to be in corresponding ranges when using serialized signatures (or digests of them) as unique keys. To address the denial-of-service, the users can install hook to recover panics and recover ### Resources * [Verichains advisory](https://github.com/advisories/GHSA-9xfq-8j3r-xp5g) for signature malleability. * Fix https://github.com/Consensys/gnark-crypto/pull/449 * [Go blog post "Defer, Panic, and Recover"](https://go.dev/blog/defer-panic-and-recover) * [gnark v0.12.0](https://github.com/Consensys/gnark-crypto/releases/tag/v0.12.0) ### Acknowledgement Lack of range checks leading to signature malleability was reported by [Verichains](https://www.verichains.io/).
- GO-2023-2096Signature malleability in github.com/consensys/gnark-crypto2023-10-05vendor · osvUS
Signature malleability in github.com/consensys/gnark-crypto
- GO-2025-4027Gnark-crypto doesn't range check input values during ECDSA and EdDSA deserialization in github.com/consensys/gnark-crypto2025-10-30vendor · osvUS
Gnark-crypto doesn't range check input values during ECDSA and EdDSA deserialization in github.com/consensys/gnark-crypto
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-44273/cnnvd
- https://github.com/Consensys/gnark-crypto/pull/449cnnvd
- https://github.com/Consensys/gnark-crypto/releasescnnvd
- https://verichains.iocnnvd
- https://github.com/Consensys/gnark-crypto/pull/449enisa_euvd
- https://github.com/Consensys/gnark-crypto/releasesenisa_euvd
- https://verichains.ioenisa_euvd
- https://github.com/Consensys/gnark-crypto/pull/449Patchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan