CVE-2024-50354

Out-of-memory during deserialization with crafted inputs

Published Oct 31, 2024 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3021 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.
Github GHSA Github GHSA GHSA-cph5-3pgr-c82g Gnark out-of-memory during deserialization with crafted inputs
History
Type Values Removed Values Added
First Time appeared Consensys
Consensys gnark
CPEs cpe:2.3:a:consensys:gnark:*:*:*:*:*:*:*:*
Vendors & Products Consensys
Consensys gnark
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Out-of-memory during deserialization with crafted inputs
Weaknesses CWE-400
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 31, 2024, 4:53 PM
Reserved
Oct 22, 2024, 5:54 PM
Status
Analyzed
Published
Oct 31, 2024, 4:15 PM
Modified
Jun 17, 2026, 8:04 AM