Vulnerability · Published Oct 31, 2024 · Assigned by GitHub_M
CVE-2024-50354Out-of-memory during deserialization with crafted inputs
Medium 5.5
In plain English
A medium-severity uncontrolled resource consumption in gnark from Consensys. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.3%top 74.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/consensys/gnark | 0.11.1 | GHSA-cph5-3pgr-c82g |
| Go | github.com/consensys/gnark | 0.12.0 | GO-2024-3244 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g x_refsource_CONFIRM
- https://github.com/Consensys/gnark/pull/1307 x_refsource_MISC
- https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d x_refsource_MISC