Skip to content
OpenAdvisories
Medium · 5.5 CVE-2024-50354 EUVD-2024-3021GHSA-cph5-3pgr-c82gGO-2024-3244

Out-of-memory during deserialization with crafted inputs

Published Oct 31, 2024 · Updated Oct 31, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
Consensys gnark <= 0.11.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2025:0429-1, SUSE-SU-2024:3950-1
SLES 15 SP5 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2024:3950-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 12 govulncheck-vulndb 0.0.20241104T154416-5.1 openSUSE-SU-2024:0350-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20241101T215616-1.1 openSUSE-SU-2024:14452-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2025:0429-1, SUSE-SU-2024:3950-1
openSUSE Leap 15.5 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2024:3950-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/consensys/gnark < 0.11.1 0.11.1 GHSA-cph5-3pgr-c82g
Go github.com/consensys/gnark < 0.12.0 0.12.0 GO-2024-3244

Advisories 4

References