{"answers":{"affected":"3 open source packages ship an affected version, including github.com/consensys/gnark. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50354 exists.","fix":"Upgrade github.com/consensys/gnark to a fixed version for your release line: 0.11.1 or 0.12.0.","what":"CVE-2024-50354 is a medium-severity denial of service vulnerability in Consensys gnark, published on 31 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-50354 and fix it if it is affected.\n\nWhat it is: CVE-2024-50354 is a medium-severity denial of service vulnerability in Consensys gnark, published on 31 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50354 exists.\n\nAffected packages and fixed versions:\n- github.com/consensys/gnark (Go): affected all versions; fixed in 0.11.1\n- github.com/consensys/gnark (Go): affected all versions; fixed in 0.11.1\n- github.com/consensys/gnark (Go): affected all versions; fixed in 0.12.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-50354/ (Markdown: https://insights.sbomify.com/CVE-2024-50354/index.md)","id":"CVE-2024-50354","markdown":"https://insights.sbomify.com/CVE-2024-50354/index.md","name":"CVE-2024-50354","record":{"aliases":["GHSA-cph5-3pgr-c82g","GO-2024-3244"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go zk-SNARK library","requires_auth":"low_privilege","summary":"Attackers can cause a denial of service by triggering out-of-memory errors during the deserialization of crafted Groth16 verification keys in the gnark library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gnark","vendor":"consensys"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Out-of-memory during deserialization with crafted inputs","id":"CVE-2024-50354","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"LibreNMS has a Persistent XSS from Insecure Input Sanitization Affects Multiple Endpoints","id":"CVE-2024-50355"},"packages":[{"ecosystem":"Go","fixed":["0.11.1"],"introduced":["0"],"last_affected":[],"package":"github.com/consensys/gnark","purl":null,"source":"GHSA-cph5-3pgr-c82g"},{"ecosystem":"Go","fixed":["0.11.1"],"introduced":["0"],"last_affected":[],"package":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","source":"GHSA-cph5-3pgr-c82g"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","source":"GO-2024-3244"}],"prev":{"headline":"ICG.AspNetCore.Utilities.CloudStorage's Secure Token Durations Different Than Expected","id":"CVE-2024-50353"},"products":["gnark"],"published":"2024-10-31","related":[{"cvss_score":8.6,"headline":"gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks","id":"CVE-2025-57801","kev_date_added":null,"published":"2025-08-22"},{"cvss_score":7.5,"headline":"gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm","id":"CVE-2025-58157","kev_date_added":null,"published":"2025-08-29"},{"cvss_score":7.1,"headline":"gnark vulnerable to unsoundness in variable comparison/non-unique binary decomposition","id":"CVE-2023-44378","kev_date_added":null,"published":"2023-10-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-31","vendors":["Consensys"]},"summary":"Attackers can cause a denial of service by triggering out-of-memory errors during the deserialization of crafted Groth16 verification keys in the gnark library.","url":"https://insights.sbomify.com/CVE-2024-50354/"}