CVE-2024-50354 Out-of-memory during deserialization with crafted inputs
MediumCVSS 5.5
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
gnark is a fast zk-SNARK library that offers a high-level API to design circuits. In gnark 0.11.0 and earlier, deserialization of Groth16 verification keys allocate excessive memory, consuming a lot of resources and triggering a crash with the error fatal error: runtime: out of memory.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| consensys github.com/consensys/gnark | < 0.12.0; <= 0.11.0; = <= 0.11.0 | 0.12.0 | Fixed |
| consensys github.com/consensys/gnark(Go) | < 0.11.1; < 0.12.0; <= 0.11.0 | 0.11.1, 0.12.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| consensys github.com/consensys/gnark(Go) | < 0.11.1 | 0.11.1 |
| consensys github.com/consensys/gnark(Go) | < 0.12.0 | 0.12.0 |
| consensys github.com/consensys/gnark(Go) | <= 0.11.0 | No fix listed |
| consensys github.com/consensys/gnark | = <= 0.11.0 | No fix listed |
| consensys github.com/consensys/gnark | <= 0.11.0 | No fix listed |
| consensys github.com/consensys/gnark | < 0.12.0 | 0.12.0 |
References
- https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Consensys/gnark/pull/1307 issue-tracking patch
- https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d patch
- github.com product
- github.com vendor-advisory