# CVE-2024-50354: Out-of-memory during deserialization with crafted inputs

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-31T15:59:30.063Z
- Modified: 2026-06-17T08:04:17.623Z
- Also known as: GHSA-cph5-3pgr-c82g, GO-2024-3244
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Consensys gnark: <= 0.11.0; up to 0.11.0; before 0.12.0
- github.com/consensys/gnark (Go): before 0.11.1; before 0.12.0

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g> (exploit, vendor-advisory, web)
- <https://github.com/Consensys/gnark/pull/1307> (fix, issue-tracking, patch, web)
- <https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-50354> (advisory)
- <https://github.com/Consensys/gnark> (package)
- <https://github.com/advisories/GHSA-cph5-3pgr-c82g> (advisory)

## Sources

- CVE List: [CVE-2024-50354](https://www.cve.org/CVERecord?id=CVE-2024-50354), CVE Terms of Use, modified 2024-10-31
- GitHub Advisory Database: [GHSA-cph5-3pgr-c82g](https://github.com/advisories/GHSA-cph5-3pgr-c82g), CC-BY-4.0, modified 2024-11-04
- Go Vulnerability Database: [GO-2024-3244](https://pkg.go.dev/vuln/GO-2024-3244), CC-BY-4.0, modified 2025-02-06
- NVD: [CVE-2024-50354](https://nvd.nist.gov/vuln/detail/CVE-2024-50354), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50354 · Whole record: https://cve.day/CVE-2024-50354.json · Rebuilt by cve.day 2026-11-25T22:58:47.554Z
