Skip to main content
← All vulnerabilities
CVE-2024-50354GO-2024-3244GHSA-CPH5-3PGR-C82G

Out-of-memory during deserialization with crafted inputs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.12.0, 0.11.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Consensys gnark

    through 0.11.0

  • github.com/consensys/gnarkGo

    fixed in 0.12.0

  • github.com/consensys/gnarkGo

    fixed in 0.11.1

References 3

GitHub · Consensys/gnark