{"id":"CVE-2025-61588","published":"2025-10-01T23:30:26Z","modified":"2025-10-02T18:01:05Z","title":"risc0 vulnerable to arbitrary code execution in guest via memory safety failure in `sys_read`","vendor":"risc0","product":"risc0","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00463,"percentile":0.41008,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/risc0/risc0/security/advisories/GHSA-jqq4-c7wq-36h7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/risc0/risc0/pull/3351","tags":["x_refsource_MISC"]},{"url":"https://github.com/risc0/risc0/commit/3f00e1fa0159599c1601e788021f2169d1f0a4dc","tags":["x_refsource_MISC"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":8.2},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"risc0","affectedVersions":[{"vendor":"risc0","product":"risc0","versions":["< 2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-10-02T18:00:36.554327Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"risc0-zkvm-platform","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-jqq4-c7wq-36h7"],"provenance":"source"},{"ecosystem":"crates.io","package":"risc0-zkos-v1compat","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-jqq4-c7wq-36h7"],"provenance":"source"},{"ecosystem":"crates.io","package":"risc0-aggregation","vulnerableRanges":["<0.9"],"patched":["0.9"],"from":["GHSA-jqq4-c7wq-36h7"],"provenance":"source"},{"ecosystem":"crates.io","package":"risc0-zkvm","vulnerableRanges":["<2.3.2",">=3.0.0, <3.0.3"],"patched":["2.3.2","3.0.3"],"from":["GHSA-jqq4-c7wq-36h7"],"provenance":"source"}],"summary":{"text":"A memory safety flaw in the sys_read handling of risc0-zkvm-platform (used by RISC Zero's zero-knowledge verifiable computing platform) lets the host, via a crafted response, write to arbitrary memory locations inside the zkVM guest, enabling arbitrary code execution within the guest. An attacker needs no authentication, user interaction, or special configuration, only the ability to supply the host's response to the guest's sys_read request over the network, and every guest program built with the affected versions is exposed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:57Z"},"euvd":{"id":"EUVD-2025-32663","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-risc0-cve-2025-52484","parents":[{"from":"CVE-2025-52484","to":"CVE-2025-61588","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["risc0/build/src/docker.rs"],"commits":["https://github.com/risc0/risc0/commit/006d86c363b16d2b2ac42d32d832a209ff8ab4c9","https://github.com/risc0/risc0/commit/1873bbb8a56793edd1f6195242d184cf6cc5175d","https://github.com/risc0/risc0/commit/3f00e1fa0159599c1601e788021f2169d1f0a4dc"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-52484","published":"2025-06-20","fixed":"2.1.0","kev":false},{"cve":"CVE-2025-54873","published":"2025-08-05","fixed":"2.2.0","kev":false,"link":{"from":"CVE-2025-54873","to":"CVE-2025-61588","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:risc0-zkvm","fromFixed":"2.2.0","toFixed":"2.3.2","daysApart":57}]}},{"cve":"CVE-2025-61588","published":"2025-10-01","fixed":"3.0.3","kev":false}],"package":"crates.io:risc0-zkvm"}}