Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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