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

EcosystemPackageFixed inAdvisory
Gogithub.com/consensys/gnark0.11.1GHSA-cph5-3pgr-c82g
Gogithub.com/consensys/gnark0.12.0GO-2024-3244

Affected products (as reported)

VendorProductVersions
Consensys gnark <= 0.11.0

Weakness: CWE-400 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References