{"answers":{"affected":"10 open source packages ship an affected version, including risc0-zkvm, risc0-aggregation and risc0-zkos-v1compat.","exploited":"There is no known exploitation of CVE-2025-61588 in the wild and no public exploit code.","fix":"Upgrade risc0-zkvm to a fixed version for your release line: 2.3.2 or 3.0.3.","what":"CVE-2025-61588 is a critical memory corruption vulnerability in risc0, published on 1 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-61588 and fix it if it is affected.\n\nWhat it is: CVE-2025-61588 is a critical memory corruption vulnerability in risc0, published on 1 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-61588 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- risc0-zkvm (crates.io): affected all versions; fixed in 2.3.2\n- risc0-zkvm (crates.io): affected all versions; fixed in 2.3.2\n- risc0-zkvm (crates.io): affected from 3.0.0; fixed in 3.0.3\n- risc0-zkvm (crates.io): affected from 3.0.0; fixed in 3.0.3\n- risc0-aggregation (crates.io): affected all versions; fixed in 0.9\n- risc0-aggregation (crates.io): affected all versions; fixed in 0.9\n- risc0-zkos-v1compat (crates.io): affected all versions; fixed in 2.1.0\n- risc0-zkos-v1compat (crates.io): affected all versions; fixed in 2.1.0\n- risc0-zkvm-platform (crates.io): affected all versions; fixed in 2.1.0\n- risc0-zkvm-platform (crates.io): affected all versions; fixed in 2.1.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-2025-61588/ (Markdown: https://insights.sbomify.com/CVE-2025-61588/index.md)","id":"CVE-2025-61588","markdown":"https://insights.sbomify.com/CVE-2025-61588/index.md","name":"CVE-2025-61588","record":{"aliases":["GHSA-jqq4-c7wq-36h7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"RISC Zero zkVM platform","requires_auth":"none","summary":"A memory safety failure in sys_read allows the host to write to arbitrary guest memory, enabling arbitrary code execution within the zkVM guest.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture. In versions 2.0.2 and below of risc0-zkvm-platform, when the zkVM guest calls sys_read, the host is able to use a crafted response to write to an arbitrary memory location in the guest. This capability can be leveraged to execute arbitrary code within the guest. As sys_read is the mechanism by which input is requested by the guest, all guest programs built with the affected versions are vulnerable. This critically compromises the soundness guarantees of the guest program. Other affected packages include risc0-aggregation versions below 0.9,  risc0-zkos-v1compat below 2.1.0, risc0-zkvm versions between 3.0.0-rc.1 and 3.0.1. This issue has been fixed in the following versions: risc0-zkvm-platform 2.1.0, risc0-zkos-v1compat 2.1.0, risc0-aggregation 0.9, and risc0-zkvm 2.3.2 and 3.0.3.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"risc0 vulnerable to arbitrary code execution in guest via memory safety failure in `sys_read`","id":"CVE-2025-61588","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"memory_corruption","year":"2025"},"n_packages":10,"n_references":3,"next":{"headline":"Cursor: Potential Information Leakage via Mermaid Diagram","id":"CVE-2025-61589"},"packages":[{"ecosystem":"crates.io","fixed":["0.9"],"introduced":["0"],"last_affected":[],"package":"risc0-aggregation","purl":null,"source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["0.9"],"introduced":["0"],"last_affected":[],"package":"risc0-aggregation","purl":"pkg:cargo/risc0-aggregation","source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"risc0-zkos-v1compat","purl":null,"source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"risc0-zkos-v1compat","purl":"pkg:cargo/risc0-zkos-v1compat","source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["2.3.2"],"introduced":["0"],"last_affected":[],"package":"risc0-zkvm","purl":null,"source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["2.3.2"],"introduced":["0"],"last_affected":[],"package":"risc0-zkvm","purl":"pkg:cargo/risc0-zkvm","source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["3.0.3"],"introduced":["3.0.0"],"last_affected":[],"package":"risc0-zkvm","purl":null,"source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["3.0.3"],"introduced":["3.0.0"],"last_affected":[],"package":"risc0-zkvm","purl":"pkg:cargo/risc0-zkvm","source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"risc0-zkvm-platform","purl":null,"source":"GHSA-jqq4-c7wq-36h7"},{"ecosystem":"crates.io","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"risc0-zkvm-platform","purl":"pkg:cargo/risc0-zkvm-platform","source":"GHSA-jqq4-c7wq-36h7"}],"prev":{"headline":"Weblate integration with Anubis can lead to Open Redirect via redir parameter","id":"CVE-2025-61587"},"products":["risc0"],"published":"2025-10-01","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-02","vendors":["risc0"]},"summary":"A memory safety failure in sys_read allows the host to write to arbitrary guest memory, enabling arbitrary code execution within the zkVM guest.","url":"https://insights.sbomify.com/CVE-2025-61588/"}